MonarchTheme class
Class for the @MonarchTheme
annotation.
Constructors
- MonarchTheme(String name, {bool isDefault = false})
-
Marks a variable as a theme that Monarch should use.
The variable should be of type
ThemeData
and it should be a top-level library variable (i.e. not a local variable or class field).const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDefault → bool
-
Whether this theme is the default theme for all stories.
final
- name → String
-
The name of the theme. Monarch will use this name on the UI.
final
- 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