onChangeMetrics method

Future<void> onChangeMetrics()

Called when the application's dimensions change.

It is usually called in the WidgetsBindingObserver.didChangeMetrics method of WidgetsBindingObserver

Implementation

Future<void> onChangeMetrics() async {
  if (await _waitChangeMetrics()) {
    _resize();
  }
}