set abstract method

Future<void> set(
  1. T data, [
  2. SetOptions? options
])

Sets data on the document, overwriting any existing data. If the document does not yet exist, it will be created.

If SetOptions are provided, the data can be merged into an existing document instead of overwriting.

Implementation

Future<void> set(T data, [SetOptions? options]);