openScanner function

Future<String> openScanner(
  1. BuildContext context
)

Implementation

Future<String> openScanner(BuildContext context) async {
  return await Navigator.push(
    context,
    MaterialPageRoute(builder: (context) => QrCodeView()),
  );
}