FallbackThemeProvider

Class

Static Fields

Methods

GetThemed<T>(property: BaseThemeProperty<T>, listen: bool): T
Resolves the theme value for the given property.
RemarksThe returned value may be invalid for struct types. Use IThemeProvider.TryGetThemed in cases where you need to be sure that the value is valid and intentionally assigned. If you can't be sure that this provider is not null, use WidgetExtensions.Get instead.

Parameters

property:BaseThemeProperty<T> - The theme property to resolve.
listen:bool - Whether this provider should listen for theme updates.

Returns

T-The resolved theme value, or the default value if not found.
TryGetThemed<S>(property: BaseThemeProperty<S>, value: S, listen: bool): bool
Tries to resolve the theme value for the given property.
RemarksIf you can't be sure that this provider is not null, use WidgetExtensions.TryGet instead.

Parameters

property:BaseThemeProperty<S> - The theme property to resolve.
value:S - The resolved theme value, or the default value if not found.
listen:bool - Whether this provider should listen for theme updates.

Returns

bool-true if the value retrieved is valid, otherwise false.

Inherited Members

Extension Methods

DescribeIdentityShortHashToStringNullable

On this page