didChangeMetrics method
Called when the application's dimensions change. For example, when a phone is rotated.
Implementation
@override
@mustCallSuper
void didChangeMetrics() {
super.didChangeMetrics();
//
forEachState((state) {
state.didChangeMetrics();
}, reversed: true, remove: this);
}