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
Annotations
  • @JsonSerializable.new()

Constructors

DuckUnknown({required String name})
Creates a new DuckUnknown instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the unknown component.
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 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.