updateEntity method

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

Implementation

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