FlutterBackgroundServiceAndroid constructor

FlutterBackgroundServiceAndroid()

Implementation

factory FlutterBackgroundServiceAndroid() {
  if (!_isMainIsolate) {
    throw Exception(
      "This class should only be used in the main isolate (UI App)",
    );
  }

  return _instance;
}