scan static method

Future<String?> scan({
  1. String? title,
  2. List<UCodeFormat> formats = const <UCodeFormat>[],
  3. String? hintText,
  4. bool showGalleryButton = false,
  5. 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);