open static method

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

Pushes this page and awaits the scanned string, or null if dismissed.

Implementation

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