add method

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

Add a ChatModel to the repository, cached

Implementation

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