DuckComponentRegistry class
A registry for DuckComponent parsers.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
parsers
→ Map<
String, DuckComponentParser> -
A map of component types to their respective parsers.
final
Static Methods
-
getParser(
String componentType) → DuckComponentParser? -
Gets the parser for a given
componentType. -
isRegistered(
String componentType) → bool - Checks if a component type is registered.
-
register(
Map< String, DuckComponentParser> componentParsers) → void - Registers component parsers for the given map of component types.
-
unregister(
String componentType) → bool -
Unregisters a component parser for the given
componentType.