SystemChrome class Null safety

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

Properties

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

Methods

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

Operators

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

Static Properties

latestStyle SystemUiOverlayStyle?
The last style that was set using SystemChrome.setSystemUIOverlayStyle.
visibleForTesting">@visibleForTestingread-only

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.
Deprecated('Migrate to setEnabledSystemUIMode. ' 'This feature was deprecated after v2.3.0-17.0.pre.')">@Deprecated('Migrate to setEnabledSystemUIMode. ' 'This feature was deprecated after v2.3.0-17.0.pre.')
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).