NyTheme class
Class to help manage current theme in the app.
Constructors
- NyTheme()
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
-
set(
BuildContext context, {required String id}) → dynamic -
Changes the current theme to the new
theme
standard lightthemeName
(id is "light_theme") standard darkthemeName
(id is "dark_theme")