run static method
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(),
]);
}
}