SystemChrome class Null safety

Controls specific aspects of the operating system's graphical interface and how it interacts with the application.


hashCode int
The hash code for this object.
runtimeType Type
A representation of the runtime type of the object.


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Properties

latestStyle SystemUiOverlayStyle?
The last style that was set using SystemChrome.setSystemUIOverlayStyle.

Static Methods

restoreSystemUIOverlays() Future<void>
Restores the system overlays to the last settings provided via setEnabledSystemUIOverlays. May be used when the platform force enables/disables UI elements.
setApplicationSwitcherDescription(ApplicationSwitcherDescription description) Future<void>
Specifies the description of the current state of the application as it pertains to the application switcher (also known as "recent tasks").
setEnabledSystemUIMode(SystemUiMode mode, {List<SystemUiOverlay>? overlays}) Future<void>
Specifies the SystemUiMode to have visible when the application is running.
setEnabledSystemUIOverlays(List<SystemUiOverlay> overlays) Future<void>
Specifies the set of system overlays to have visible when the application is running.
setPreferredOrientations(List<DeviceOrientation> orientations) Future<void>
Specifies the set of orientations the application interface can be displayed in.
setSystemUIChangeCallback(SystemUiChangeCallback? callback) Future<void>
Sets the callback method for responding to changes in the system UI.
setSystemUIOverlayStyle(SystemUiOverlayStyle style) → void
Specifies the style to use for the system overlays that are visible (if any).