ReactiveMode class
The ReactiveMode
class provides a static method to check if the current theme mode is dark mode.
Constructors
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 Methods
-
getSavedThemeMode(
) → Future< ThemeMode?> - The function retrieves the saved theme mode from shared preferences and returns it as a ThemeMode enum value.
-
isDarkMode(
BuildContext context) → bool - The function checks if the current theme in the given context is set to dark mode.