onToggleFullScreen property
Optional callback, fired when full screen mode toggles.
Important: If this method is set, the configuration of DeviceOrientation and SystemUiMode is up to you.
Implementation
final Future<void> Function(bool isFullScreen)? onToggleFullScreen;