WidgetBaseElement

Abstract Class

Properties

Descriptor: Widget
ParentContext: BuildContext

Methods

ToString(): string
DebugDescribeChildren(): List<DiagnosticsNode>
DebugFillProperties(properties: DiagnosticPropertiesBuilder): void
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.
ToDiagnosticsNode(name: string, style: Nullable<DiagnosticsTreeStyle>): DiagnosticsNode
ToStringDeep(prefixLineOne: string, prefixOtherLines: string, minLevel: DiagnosticLevel, wrapWidth: int): string
ToStringShallow(joiner: string, minLevel: DiagnosticLevel): string
ToStringShort(): string
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.
CanReconcile(updated: Widget): bool
Reconcile(updated: Widget): bool

Inherited Members

UssClassNameHierarchyDepthThemeProviderElementElementThemeValueContainsThemeValueRemoveThemeValueRegisterThemeValueWidgetFactorySlotDeleteFactorySlotOnAttachedOnDetachedOnThemeUpdatedOnWatchedThemeUpdateddisabledUssClassNameSetActivePseudoStateSetCheckedPseudoStateFocusSendEventSetEnabledFromHierarchySetEnabledMarkDirtyRepaintIsMarkedForRepaintContainsPointOverlapsDoMeasureGetClassesClearClassListAddToClassListRemoveFromClassListToggleInClassListEnableInClassListClassListContainsFindAncestorUserDataSetBindingGetBindingTryGetBindingGetBindingInfosHasBindingClearBindingClearBindingsGetHierarchicalDataSourceContextGetDataSourceContextTryGetDataSourceContextTryGetLastBindingToUIResultTryGetLastBindingToSourceResultAddInsertRemoveRemoveAtClearElementAtIndexOfChildrenSortBringToFrontSendToBackPlaceBehindPlaceInFrontRemoveFromHierarchyGetFirstOfTypeGetFirstAncestorOfTypeContainsFindCommonAncestorviewDataKeyuserDatacanGrabFocusfocusControllerdisablePlayModeTintusageHintstransformscaledPixelsPerPointlayoutcontentRectpaddingRectworldBoundlocalBoundworldTransformhasActivePseudoStatehasInactivePseudoStatehasHoverPseudoStatehasCheckedPseudoStatehasEnabledPseudoStatehasDisabledPseudoStatehasFocusPseudoStatehasRootPseudoStatepickingModenameenabledInHierarchyenabledSelflanguageDirectionvisiblegenerateVisualContentdataSourcedataSourcePathdataSourceTypeexperimentalhierarchycacheAsBitmapparentpanelcontentContainervisualTreeAssetSourcethis[int]childCountschedulestyleresolvedStylecustomStylestyleSheetstooltipBlurfocusabletabIndexdelegatesFocusRegisterCallbackRegisterCallbackOnceUnregisterCallbackHasTrickleDownHandlersHasBubbleUpHandlersExecuteDefaultActionAtTargetHandleEventBubbleUpHandleEventTrickleDownExecuteDefaultActionNotifyPropertyChangedEqualsGetHashCodeGetTypeMemberwiseCloneReferenceEquals

Extension Methods

ToDiagnosticsNodeSafeAddClassesAddToBackgroundColorBackgroundImageColorBackgroundImageScalingBackgroundImageBindDisposableBorderColorBorderRadiusBorderConstrainedConstraintsDisplayFillFlexContainerFlexibleHeightConstraintsImageLoosenMakeAbsoluteMakeRelativeMarginMarginedNoBorderRadiusNoBorderNoMarginNoPaddingAndMarginNoPaddingNoPositionOpacityPaddedPaddingPickablePositionPositionedRegisterOnAttachRetroactivelySizeSizedStretchedTextAlignTextColorTextSizeTightStretchTightTransitionsTranslatedVisibleWidthConstraintsWithAddedWithCallbackWithClassesWithNameWithStyleWithStylesheetDescribeIdentityShortHashToStringNullableTweenGetDepth

On this page