add method

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

Add a PostLikeModel to the repository, cached

Implementation

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