bind<S> method

ProviderDefinition bind<S>()

Definition Binding

Implementation

ProviderDefinition bind<S>() {
  var newTypes = List<Type>.from([S]);
  newTypes.addAll(secondaryTypes);

  var copyT = copy(secondaryTypes: newTypes);
  scopeDefinition.remove(this);
  scopeDefinition.save(copyT);
  return copyT;
}