add method

  1. @override
Future<AlbumModel> add(
  1. AlbumModel value
)
override

Add a AlbumModel to the repository, cached

Implementation

@override
Future<AlbumModel> add(AlbumModel value) {
  return reference.add(value).then((newValue) {
    fullCache[value.documentID] = newValue;
    return newValue;
  });
}