didChangeMetrics method

void didChangeMetrics()

Called when the application's 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 overriden 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; });
  ///   }
}