FlutterWidgetProperty class
A property of a Flutter widget.
Constructors
-
FlutterWidgetProperty(int id, bool isRequired, bool isSafeToUpdate, String name, {String? documentation, String? expression, List<
FlutterWidgetProperty> ? children, FlutterWidgetPropertyEditor? editor, FlutterWidgetPropertyValue? value})
Properties
-
children
→ List<
FlutterWidgetProperty> ? -
The list of children properties, if any. For example any property of type
EdgeInsets
will have four children properties of typedouble
- left / top / right / bottom.final - documentation → String?
-
The documentation of the property to show to the user. Omitted if the
server does not know the documentation, e.g. because the corresponding
field is not documented.
final
- editor → FlutterWidgetPropertyEditor?
-
The editor that should be used by the client. This field is omitted if the
server does not know the editor for this property, for example because it
does not have one of the supported types.
final
- expression → String?
-
If the value of this property is set, the Dart code of the expression of
this property.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The unique identifier of the property, must be passed back to the server
when updating the property value. Identifiers become invalid on any source
code change.
final
- isRequired → bool
-
True if the property is required, e.g. because it corresponds to a
required parameter of a constructor.
final
- isSafeToUpdate → bool
-
If the property expression is a concrete value (e.g. a literal, or an enum
constant), then it is safe to replace the expression with another concrete
value. In this case this field is true. Otherwise, for example when the
expression is a reference to a field, so that its value is provided from
outside, this field is false.
final
- name → String
-
The name of the property to display to the user.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → FlutterWidgetPropertyValue?
-
If the expression is set, and the server knows the value of the
expression, this field is set.
final
Methods
-
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