startInventory static method

Future<void> startInventory(
  1. dynamic onTagScanned(
    1. String
    )
)

Implementation

static Future<void> startInventory(Function(String) onTagScanned) async {
  _channel.setMethodCallHandler((call) async {
    if (call.method == "onTagScanned") {
      onTagScanned(call.arguments);
    }
  });
  await _channel.invokeMethod('startInventory');
}