AppThemeAccess class

Access point for AppTheme. Use this class if you want to initialize AppTheme of the app.

Constructors

AppThemeAccess()

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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

currentAppTheme AppTheme?
The current AppTheme.
getter/setter pair
currentAppThemeDarkMode AppTheme?
The current AppTheme with isDarkMode == true. This AppTheme should be a dark mode AppTheme.
getter/setter pair
isDarkMode bool
If currentAppTheme is in dark mode.
getter/setter pair
theme AppTheme
Returns the currentAppTheme. Throws if currentAppTheme == null.
no setter

Static Methods

init({required AppTheme theme}) → void
Initializes currentAppTheme as theme.
initDarkMode({required AppTheme theme}) → void
Initializes currentAppTheme as theme. Sets isDarkMode == true.