run static method

Future<void> run(
  1. Config config,
  2. RollbarClosure appRunner
)

Implementation

static Future<void> run(
  Config config,
  RollbarClosure appRunner,
) async {
  if (!config.handleUncaughtErrors) {
    await _run(config, appRunner, [NativeHook()]);
  } else if (!PlatformHook.isAvailable) {
    await runZonedGuarded(
        () async => await _run(config, appRunner, [
              FlutterHook(),
              NativeHook(),
            ]),
        Rollbar.error);
  } else {
    await _run(config, appRunner, [
      FlutterHook(),
      PlatformHook(),
      NativeHook(),
    ]);
  }
}