mirror of
https://github.com/simplezhli/flutter_barcode_reader.git
synced 2024-12-24 00:59:21 +08:00
11 lines
330 B
Dart
11 lines
330 B
Dart
import 'dart:async';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
class BarcodeScanner {
|
|
static const CameraAccessDenied = 'PERMISSION_NOT_GRANTED';
|
|
static const MethodChannel _channel =
|
|
const MethodChannel('com.apptreesoftware.barcode_scan');
|
|
static Future<String> scan() async => await _channel.invokeMethod('scan');
|
|
}
|