provideToken<T> method

T provideToken<T>(
  1. OpaqueToken<T> token
)
inherited

Finds and returns an object instance provided for a token.

An error is thrown if a provider is not found.

Implementation

T provideToken<T>(OpaqueToken<T> token) {
  return unsafeCast(get(token));
}