setSystemUiChangeCallback method

void setSystemUiChangeCallback(
  1. 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:


// ignore: use_setters_to_change_properties, (API predates enforcing the lint)
void setSystemUiChangeCallback(SystemUiChangeCallback? callback) {
  _systemUiChangeCallback = callback;