Create<T, Ref extends ProviderReference> typedef

Create<T, Ref extends ProviderReference> = T Function(Ref ref)

A callback used by providers to create the value exposed.

If an exception is thrown within that callback, all attempts at reading the provider associated with the given callback will throw.

The parameter ref can be used to interact with other providers and the life-cycles of this provider.

See also:

Implementation

typedef Create<T, Ref extends ProviderReference> = T Function(Ref ref);