init static method

void init()

Should be called in your main function after WidgetsFlutterBinding.ensureInitialized().

By default logging in finotes plugin is off.

Implementation

static void init() {
  if (Platform.isAndroid || Platform.isIOS) {
    FlutterError.onError = Fn._reportFatalError;
    if (Platform.isIOS) {
      PlatformInterface.establishNativeConnection();
    }
    PlatformInterface.init();
    if (Platform.isAndroid) {
      ThreadBlockDetector();
    }
  } else {
    log("Platform not yet supported");
  }
}