set method

void set(
  1. Data data
)

Method to set data in the document.

Parameters:

  • data: The data to be set in the document.

Example:

documentRef.set({'name': 'John', 'age': 30});

Implementation

void set(Data data) => database._w(key, data);