get<T> method

  1. @override
T get<T>({
  1. String? key,
})
override

Resolve a instância do tipo T.

Lança FakeInjectorMissingBindError se o tipo não foi registrado.

Implementation

@override
T get<T>({String? key}) {
  final instance = _instances[T];
  if (instance == null) throw FakeInjectorMissingBindError(T);
  return instance as T;
}