add abstract method

Future<DocumentReference<T>> add(
  1. T data
)

Returns a DocumentReference with an auto-generated ID, after populating it with provided data.

The unique key generated is prefixed with a client-generated timestamp so that the resulting list will be chronologically-sorted.

Implementation

Future<DocumentReference<T>> add(T data);