FlutterWidgetProperty class

FlutterWidgetProperty

{ "documentation": optional String "expression": optional String "id": int "isRequired": bool "isSafeToUpdate": bool "name": String "children": optional List

Clients may not extend, implement or mix-in this class.

Constructors

FlutterWidgetProperty(int id, bool isRequired, bool isSafeToUpdate, String name, {String? documentation, String? expression, List<FlutterWidgetProperty>? children, FlutterWidgetPropertyEditor? editor, FlutterWidgetPropertyValue? value})
FlutterWidgetProperty.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
factory

Properties

children List<FlutterWidgetProperty>?
The list of children properties, if any. For example any property of type EdgeInsets will have four children properties of type double - left / top / right / bottom.
getter/setter pair
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.
getter/setter pair
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.
getter/setter pair
expression String?
If the value of this property is set, the Dart code of the expression of this property.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
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.
getter/setter pair
isRequired bool
True if the property is required, e.g. because it corresponds to a required parameter of a constructor.
getter/setter pair
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.
getter/setter pair
name String
The name of the property to display to the user.
getter/setter pair
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.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Returns a JSON presentation of the object.
toString() String
A string representation of this object.
override

Operators

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