addEntity method

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

Implementation

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