ComponentPropertyDefinition class

Definition of a component property.

Available Extensions
Annotations
  • @JsonSerializable()
  • @CopyWith()

Constructors

ComponentPropertyDefinition({required String type, required dynamic defaultValue, List<String>? variantOptions, List<InstanceSwapPreferredValue>? preferredValues})
ComponentPropertyDefinition.fromJson(Map<String, dynamic> json)
factory

Properties

defaultValue → dynamic
Initial value of this property for instances. Either a string or a boolean.
final
hashCode int
The hash code for this object.
no setterinherited
preferredValues List<InstanceSwapPreferredValue>?
List of user-defined preferred values for this property. Only exists on INSTANCE_SWAP properties.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of the property.
final
variantOptions List<String>?
All possible values for this property. Only exists on VARIANT properties.
final

Methods

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

Operators

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