add method

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

Add a ProfileModel to the repository, cached

Implementation

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