optionalDependencies property

List<String> get optionalDependencies

List of optional module dependencies.

These modules are checked but not required for this module to function. If an optional dependency is missing, an info message will be displayed in the console.

Example:

@override
List<String> get optionalDependencies => ['analytics'];

Implementation

List<String> get optionalDependencies => const [];