DuckComponent class abstract
Abstract base class for all duck components.
This class defines the interface that all component types must implement. Components represent visual elements that can be displayed in a duck canvas.
Constructors
- DuckComponent()
-
Creates a new DuckComponent instance.
const
Properties
Methods
-
buildWidget(
BuildContext context) → Widget - Builds the widget for this component.
-
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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited