addEntity method

  1. @override
Future<ProfileEntity> addEntity(
  1. String documentID,
  2. ProfileEntity value
)
override

Implementation

@override
Future<ProfileEntity> addEntity(String documentID, ProfileEntity value) {
  return profileCollection
      .doc(documentID)
      .set(value.toDocument())
      .then((_) => value);
}