DuckContainerData class

Data model for a DuckContainer component.

Inheritance
Annotations
  • @JsonSerializable.new()

Constructors

DuckContainerData({required List<DuckComponent> list})
Creates a DuckContainerData instance.
DuckContainerData.fromJson(Map<String, dynamic> json)
Creates a DuckContainerData instance from a JSON map.
factory
DuckContainerData.mock()
Creates a mock DuckContainerData instance for testing purposes.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
list List<DuckComponent>
The list of child DuckComponents contained within this container.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The unique type identifier for this component.
no setteroverride

Methods

buildWidget(BuildContext context) Widget
Builds the widget for this component.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this component to a JSON map.
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

componentType → const String
The component type identifier for DuckContainer.