AcxDarkTheme class
Applies the dark theme class to an element, iff the dark theme is active.
Use in conjunction with @include acx-theme-dark
code:
MyComponent(AcxTheme acxTheme, ElementRef myElementRef) {
acxTheme.theme(myElementRef);
}
sass:
:host { @include acx-theme-dark { # set styles for dark theme } }
- Annotations
-
- @Injectable()
Constructors
- AcxDarkTheme(@Inject(darkThemeToken) @Optional() bool? dark)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDarkTheme → bool
-
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
-
theme(
HtmlElement element) → void -
themeElement(
HtmlElement element) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited