HostElement

Class

Classes

Properties

Descriptor: Widget
Element: VisualElement
HierarchyDepth: int
ParentContext: BuildContext

Constructors

HostElement(element: VisualElement)

Methods

CanReconcile(updated: Widget): bool
Equals(other: HostElement): bool
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.
Reconcile(updated: Widget): bool
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.
Equals(obj: object): bool
GetHashCode(): int
ToStringShort(): string

Inherited Members

Extension Methods

ToDiagnosticsNodeSafeDescribeIdentityShortHashToStringNullable

On this page