onPlatformConfigurationChanged property

VoidCallback? onPlatformConfigurationChanged

Called when the platform configuration changes.

The engine invokes this callback in the same zone in which the callback was set.

Implementation

VoidCallback? get onPlatformConfigurationChanged => _onPlatformConfigurationChanged;
void onPlatformConfigurationChanged=(VoidCallback? callback)

Implementation

set onPlatformConfigurationChanged(VoidCallback? callback) {
  _onPlatformConfigurationChanged = callback;
  _onPlatformConfigurationChangedZone = Zone.current;
}