flutter_barcode_reader/lib/barcode_scan.dart
2017-10-29 10:05:11 -07:00

10 lines
265 B
Dart

import 'dart:async';
import 'package:flutter/services.dart';
class BarcodeScan {
static const MethodChannel _channel =
const MethodChannel('com.apptreesoftware.barcode_scan');
static Future<String> scan() async => await _channel.invokeMethod('scan');
}