DVModuleRegistry class
The registry behind DV.Modules.
The generator emits typed DV.Modules.<id> accessors on top of this; the
registry itself stays string-keyed so the runtime does not need to know the
set of modules ahead of time.
Constructors
Properties
-
all
→ List<
DVModule> -
Every registered module, in registration order.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ids
→ List<
String> -
Ids of every registered module, in registration order.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
String id) → DVModule -
The module registered as
id. -
get(
String id) → DVModule -
The module registered as
id. See call. -
has(
String id) → bool -
Whether
idis registered. -
maybeGet(
String id) → DVModule? -
The module registered as
id, or null when absent. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
{required String id, required String mountPath, Map< String, Object?> config = const <String, Object?>{}, Map<String, String> assets = const <String, String>{}}) → DVModule -
Framework-only: registers a module discovered from
pubspec.yaml. -
resetForTesting(
) → void - Test-only: empties the registry.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited