ProviderOf constructor

const ProviderOf(
  1. Role<Object> role,
  2. String requiredBy, {
  3. bool chosen = false,
  4. List<ModuleId> alternatives = const [],
})

Creates the reason: the module provides role, which requiredBy needs.

Implementation

const ProviderOf(
  this.role,
  this.requiredBy, {
  this.chosen = false,
  this.alternatives = const [],
});