inject<T> method

T inject<T>()

Implementation

T inject<T>() {
  final provider = ScopedState.of(this);
  if (provider != null) {
    return provider.inject<T>();
  } else {
    throw Exception("Provider has not been found");
  }
}