useProvidedUnsafe function

dynamic useProvidedUnsafe(
  1. Type type
)

Retrieves a provided value assigned to type and registers it as a dependency of the current HookContext.

Shorthand for ProviderContext.getUnsafe on HookContext.current. Consider using a type-safe useProvided instead.

Implementation

dynamic useProvidedUnsafe(Type type) => useContext().getUnsafe(type);