save method

  1. @override
Future<E> save(
  1. E item
)
override

Saves and caches the item. On error throws.

Implementation

@override
Future<E> save(E item) async {
  _cachedItem = await _inner.save(item);
  _isItemFetched = true;
  return _cachedItem!;
}