addEntity method

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

Implementation

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