# updateEntity method Null safety

1. @override

dynamic updateEntity(

1. String documentID,
2. DecoratedContentEntity value

)
override

## Implementation

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