Provider.factory constructor
Provides a dependency using a factory.
token: The token associated with the created object.fromDerived: Optional. If provided, the factory will be used for this derived type.aliasTokens: Optional additional tokens.
Implementation
factory Provider.factory(Object token, {Object? fromDerived, List<Object>? aliasTokens}) =>
Provider(token, fromDerived: fromDerived, aliasTokens: aliasTokens);