handleMetricsChanged method

  1. @protected
  2. @visibleForTesting
void handleMetricsChanged()

Called when the system metrics change.

See dart:ui.PlatformDispatcher.onMetricsChanged.

Implementation

@protected
@visibleForTesting
void handleMetricsChanged() {
  bool forceFrame = false;
  for (final RenderView view in renderViews) {
    forceFrame = forceFrame || view.child != null;
    view.configuration = createViewConfigurationFor(view);
  }
  if (forceFrame) {
    scheduleForcedFrame();
  }
}