didChangeMetrics method

void didChangeMetrics()
inherited

Called when the application's UI dimensions change. For example, when a phone is rotated.

Implementation

void didChangeMetrics() {
  /// Called when the application's dimensions change. For example,
  /// when a phone is rotated.
  ///
  /// In general, this is not overridden often as the layout system takes care of
  /// automatically recomputing the application geometry when the application
  /// size changes
  ///
  /// This method exposes notifications from [Window.onMetricsChanged].
  /// See sample code below. No need to call super if you override.
  ///   @override
  ///   void didChangeMetrics() {
  ///     setState(() { _lastSize = ui.window.physicalSize; });
  ///   }
}