register<T> method

void register<T>(
  1. T instance, {
  2. bool? isSilent,
})

Implementation

void register<T>(T instance, {bool? isSilent}) {
  assert(instance is! Type);
  _container.registerInstance<T, T>(instance, isSilent: isSilent);
}