updateEntity method

  1. @override
Future<DynamicWidgetEntity> 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);
}