instance static method

Future<FlutterBactrack> instance(
  1. String apiKey
)

Use this method to get a reference to an object that allows you to interact with a BACtrack device.

Implementation

static Future<FlutterBactrack> instance(String apiKey) async {
  if (_instance == null) {
    _instance = FlutterBactrack._();
  }
  await _channel.invokeMethod(initMethod, apiKey);
  return _instance!;
}