mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.: check client before route pushed
This commit is contained in:
@@ -83,17 +83,11 @@ void runInZone(void Function() body) {
|
||||
|
||||
runZonedGuarded(
|
||||
body,
|
||||
onError,
|
||||
(obj, trace) => Analysis.recordException(trace),
|
||||
zoneSpecification: zoneSpec,
|
||||
);
|
||||
}
|
||||
|
||||
void onError(Object obj, StackTrace stack) {
|
||||
Analysis.recordException(stack);
|
||||
_debug.addMultiline(obj, Colors.red);
|
||||
_debug.addMultiline(stack, Colors.white);
|
||||
}
|
||||
|
||||
Future<void> main() async {
|
||||
runInZone(() async {
|
||||
await initApp();
|
||||
|
||||
Reference in New Issue
Block a user