DuckUnknown class
A placeholder component for unknown or unsupported component types.
This class is used when a component type is not recognized or not implemented yet. It displays the name of the unknown component to help with debugging.
- Inheritance
-
- Object
- DuckComponent
- DuckUnknown
- Annotations
-
- @JsonSerializable.new()
Constructors
- DuckUnknown({required String name})
- Creates a new DuckUnknown instance.
Properties
Methods
-
buildWidget(
BuildContext context) → Widget -
Builds a placeholder widget displaying the unknown component name.
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 unique identifier for this component type.