open static method

Future<String?> open({
  1. String? title,
  2. List<BarcodeFormat> formats = const <BarcodeFormat>[],
  3. String? hintText,
  4. bool showGalleryButton = false,
})

Push this page and await the scanned string (or null if dismissed).

Implementation

static Future<String?> open({
  String? title,
  List<BarcodeFormat> formats = const <BarcodeFormat>[],
  String? hintText,
  bool showGalleryButton = false,
}) => UNavigator.push<String>(UScannerPage(title: title, formats: formats, hintText: hintText, showGalleryButton: showGalleryButton));