Skip to content

Commit ec1fbca

Browse files
committed
🎨 Formatted files
1 parent 8bd2eaa commit ec1fbca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/common/run_app_bootstrap.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ typedef OnError = void Function(Object error, StackTrace? stackTrace);
88

99
/// Run a Flutter app with a bootstrap that catches errors.
1010
/// By default [onError] will use BoltLogger to log the error.
11-
Future<void> runAppBootstrap(Future<Widget> Function() builder, {OnError? onError}) async {
11+
Future<void> runAppBootstrap(Future<Widget> Function() builder,
12+
{OnError? onError}) async {
1213
final errorLogger = onError ??
1314
(exception, stackTrace) {
1415
BoltLogger.shock([exception, stackTrace]);
@@ -17,7 +18,8 @@ Future<void> runAppBootstrap(Future<Widget> Function() builder, {OnError? onErro
1718
await runZonedGuarded(
1819
() async {
1920
WidgetsFlutterBinding.ensureInitialized();
20-
FlutterError.onError = (details) => errorLogger(details.exception, details.stack);
21+
FlutterError.onError =
22+
(details) => errorLogger(details.exception, details.stack);
2123

2224
runApp(await builder());
2325
},

0 commit comments

Comments
 (0)