# updateEntity method Null safety

1. @override

dynamic updateEntity(

1. String documentID,
2. DynamicWidgetEntity value

)
override

## Implementation

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