setSystemUiChangeCallback method
- SystemUiChangeCallback? callback
Sets the callback for the SystemChrome.systemUIChange
method call
received on the SystemChannels.platform channel.
This is typically not called directly. System UI changes that this method responds to are associated with SystemUiModes, which are configured using SystemChrome. Use SystemChrome.setSystemUIChangeCallback to configure along with other SystemChrome settings.
See also:
- SystemChrome.setEnabledSystemUIMode, which specifies the SystemUiMode to have visible when the application is running.
Implementation
// ignore: use_setters_to_change_properties, (API predates enforcing the lint)
void setSystemUiChangeCallback(SystemUiChangeCallback? callback) {
_systemUiChangeCallback = callback;
}