onPlatformConfigurationChanged property Null safety

  1. @override
VoidCallback? onPlatformConfigurationChanged
override

Called when the platform configuration changes.

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

Implementation

@override
ui.VoidCallback? get onPlatformConfigurationChanged => _platformDispatcher.onPlatformConfigurationChanged;
  1. @override
void onPlatformConfigurationChanged=(VoidCallback? onPlatformConfigurationChanged)
override

Implementation

@override
set onPlatformConfigurationChanged(ui.VoidCallback? onPlatformConfigurationChanged) {
  _platformDispatcher.onPlatformConfigurationChanged = onPlatformConfigurationChanged;
}