ComponentRegistry class

Registry for component factories This allows components to be registered with the framework without requiring the framework to know about their specific implementations

Properties

hashCode int
The hash code for this object.
no setterinherited
registeredTypes List<String>
Get all registered component types
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create(String type, Map<String, dynamic> props, List<DCFComponentNode> children) DCFElement
Create a component instance with the given type, props and children
getFactory(String type) ComponentFactory?
Get a component factory by type
hasComponent(String type) bool
Check if a component type is registered
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerComponent(String type, ComponentFactory factory) → void
Register a component factory and definition
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ComponentRegistry
Singleton instance for global access
final