12 lines
369 B
Dart
12 lines
369 B
Dart
import 'dart:async';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
class BarcodeScanner {
|
|
static const CameraAccessDenied = 'PERMISSION_NOT_GRANTED';
|
|
static const UserCanceled = 'USER_CANCELED';
|
|
static const MethodChannel _channel =
|
|
const MethodChannel('de.mintware.barcode_scan');
|
|
static Future<String> scan() async => await _channel.invokeMethod('scan');
|
|
}
|