setSystemUiChangeCallback method Null safety

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:

Implementation

void setSystemUiChangeCallback(SystemUiChangeCallback? callback) {
  _systemUiChangeCallback = callback;
}