add method

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

Add a HomeMenuModel to the repository, cached

Implementation

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