EditorEnum class

EditorBase implementation for Enum properties.

Delegates the actual widget to EditorEnumWidget. The property must provide a InspectableProperty.values callback that returns the full list of enum variants; omitting it will cause a runtime error.

Inheritance

Constructors

EditorEnum({Key? key, required List<Inspectable> owners, required String propertyName, Object? customData, void onUpdatedProperty(dynamic value)?})
Creates an EditorEnum.

Properties

customData Object?
Arbitrary data forwarded to InspectableProperty.setValue on each edit.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Optional key applied to the widget returned by getWidget.
finalinherited
onUpdatedProperty → void Function(dynamic value)?
Called after the property value has been successfully updated.
finalinherited
owners List<Inspectable>
The Inspectable objects whose property is being edited.
finalinherited
propertyName String
The name of the property to edit.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getWidget(BuildContext context) Widget
Returns an EditorEnumWidget configured with this editor's parameters.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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