DeclareProperty class

Annotation used to annotate WidgetData properties

Inheritance
  • Object
  • FieldAnnotation
  • DeclareProperty

Constructors

DeclareProperty({String group = "", bool hide = false, Type? editor, String? label, Type? validator})
Create a new DeclareProperty group the group name of the property which will be used by the property panel hide if true the property is not displayed in the property panel editor optional PropertyEditorBuilder type that will be used to create the editor label the label of the property. This is actually a i18n key validator optional PropertyValidator class used to validate the property.
const

Properties

editor Type?
final
group String
final
hashCode int
The hash code for this object.
no setterinherited
hide bool
final
label String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validator Type?
final

Methods

apply(TypeDescriptor type, FieldDescriptor field) → void
callback executed by the type infrastructure type the TypeDescriptor of the annotated class method the FieldDescriptor of the annotated field
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