dependencies property
List of mandatory module dependencies.
These modules will be verified during registration. If a dependency is missing, the ModuleManager will throw a StateError.
Behavior:
- Guarantees that dependencies are registered and initialized BEFORE this module.
- Supports versioning using the format
'module_id:version'. - If a version mismatch is found, a warning will be displayed in yellow in the console, but it won't block the execution (unless the module is missing).
Example:
@override
List<String> get dependencies => ['auth', 'notifications:^1.0.0'];
Implementation
List<String> get dependencies => const [];