AbstractValuedWidgetAdapter<T> class
abstract
base class for widget adapters
T the widget type
- Inheritance
-
- Object
- ValuedWidgetAdapter<
T> - AbstractValuedWidgetAdapter
- Implementers
Constructors
-
AbstractValuedWidgetAdapter(String name, List<
TargetPlatform> platforms)
Properties
- annotation ↔ WidgetAdapter
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
final
-
platforms
↔ List<
TargetPlatform> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
{required BuildContext context, required FormMapper mapper, required TypeProperty property, required Keywords args}) → Widget -
build and bind the corresponding widget
contexta FormMappermapperthe FormMapperpropertya TypePropertyargsand parameters that will be handled by the adapterinherited -
dispose(
WidgetProperty property) → void -
dispose any resources
override
-
getId(
T widget) → String -
override
-
getName(
) → String -
return the element name
override
-
getType(
) → Type -
return the element type
override
-
getValue(
T widget) → dynamic -
return the current value given a widget
widgetthe widgetinherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setValue(
T widget, dynamic value, ValuedWidgetContext context) → void -
set a current value
widgetthe widgetvaluethe valuecontextthe ValuedWidgetContextinherited -
supportedPlatforms(
) → List< TargetPlatform> -
override
-
supports(
TargetPlatform platform) → bool -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited