set method Null safety

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 will be merged into an existing document instead of overwriting.


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