scan static method
Future<String?>
scan({
- String? title,
- List<
UCodeFormat> formats = const <UCodeFormat>[], - String? hintText,
- bool showGalleryButton = false,
- UScanSpeed speed = UScanSpeed.normal,
Opens the scanner and returns the first code's text, or null when closed. final String? text = await UCamera.scan(formats: [UCodeFormat.qrCode])
Implementation
static Future<String?> scan({String? title, List<UCodeFormat> formats = const <UCodeFormat>[], String? hintText, bool showGalleryButton = false, UScanSpeed speed = UScanSpeed.normal}) =>
UScannerPage.open(title: title, formats: formats, hintText: hintText, showGalleryButton: showGalleryButton, speed: speed);