add method

Add a DocumentItemModel to the repository, cached

Implementation

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