mirror of
https://github.com/simplezhli/flutter_barcode_reader.git
synced 2024-11-17 03:09:20 +08:00
10 lines
268 B
Dart
10 lines
268 B
Dart
import 'dart:async';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
class BarcodeScanner {
|
|
static const MethodChannel _channel =
|
|
const MethodChannel('com.apptreesoftware.barcode_scan');
|
|
static Future<String> scan() async => await _channel.invokeMethod('scan');
|
|
}
|