handleMetricsChanged method Null safety

  1. @override
void handleMetricsChanged()
override

Called when the system metrics change.

See dart:ui.PlatformDispatcher.onMetricsChanged.

Implementation

@override
void handleMetricsChanged() {
  super.handleMetricsChanged();
  for (final WidgetsBindingObserver observer in _observers)
    observer.didChangeMetrics();
}