WidgetRegistry class
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
-
registeredTypes
→ Set<
String> -
Get all registered type names.
no setter
Static Methods
-
build(
String type, Map< String, dynamic> params, {void onAction(String url)?}) → Widget? - Build a widget for the given type and params. Returns null if the type is not registered.
-
clear(
) → void - Clear all registrations (useful for testing).
-
hasType(
String type) → bool - Check if a type is registered.
-
register(
String type, WidgetBuilder builder) → void - Register a widget builder for a given type.
-
registerAll(
Map< String, WidgetBuilder> builders) → void - Register multiple builders at once.