add method

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

Add a RoomModel to the repository, cached

Implementation

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