addEntity method

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

Implementation

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