hasDynamicDependencies property

  1. @override
bool get hasDynamicDependencies
override

Whether a dynamic injectorGet(...) is required to resolve this provider.

For example:

  // DependencyService is dynamically required to resolve MyService.
  _MyService = MyService(injectorGet(DependencyService));

Implementation

@override
bool get hasDynamicDependencies => _source?.hasDynamicDependencies != false;