add method

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

Add a MenuDefModel to the repository, cached

Implementation

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