e.g.,
|
@override |
|
void handleAppLifecycleStateChanged(AppLifecycleState state) { |
|
super.handleAppLifecycleStateChanged(state); |
|
for (final observer in List<WidgetsBindingObserver>.of(_observers)) { |
|
observer.didChangeAppLifecycleState(state); |
|
} |
|
} |
Some of these callbacks are method channel handlers. Binary messenger surprisingly turns exceptions into platform channel replies and sends them back to the platform, in which case the exceptions are usually silently discarded.
e.g.,
flutter/packages/flutter/lib/src/widgets/binding.dart
Lines 1064 to 1070 in 7889ccc
Some of these callbacks are method channel handlers. Binary messenger surprisingly turns exceptions into platform channel replies and sends them back to the platform, in which case the exceptions are usually silently discarded.