Provider.value constructor
Provides a dependency as a constant value.
token: The token to associate with this value.value: The actual object instance to provide.aliasTokens: Optional additional tokens that can be used to retrieve this value.
Implementation
factory Provider.value(Object token, Object value, {List<Object>? aliasTokens}) =>
Provider(token, fromValue: value, aliasTokens: aliasTokens);