WidgetPart class

A part that displays a custom widget.

Inheritance

Constructors

WidgetPart(Widget widget)
Creates a WidgetPart with the specified widget.
const

Properties

canHaveValue bool
Whether this part can hold a value.
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
part InputPart
Returns this part.
no setterinherited
partKey Object?
A unique key identifying this part.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String?
The current value of this part, or null if it doesn't hold a value.
no setterinherited
widget Widget
The widget to display.
final

Methods

build(BuildContext context, FormattedInputData data) Widget
Builds the widget for this part.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withValue(String value) FormattedValuePart
Creates a copy of this part with the specified value.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override