startScan method

Future<String?> startScan(
  1. BuildContext context,
  2. QRScanType type
)

Implementation

Future<String?> startScan(BuildContext context, QRScanType type) async {
  String? response = await Navigator.push(
    context,
    MaterialPageRoute(builder: (context) => BarScanPage(type: type)),
  );

  return response;
}