value property
Future<T>
value
Uses provider to get the value if it is not cached, or returns the cached value if it was. If provider is not set, this will throw an exception
Implementation
Future<T> get value async {
if (provider == null) {
throw ArgumentError('Cannot call get when provider is not set');
}
return _getUsingProvider(provider!);
}