update method

void update(
  1. Data data
)

Method to update data in the document.

Parameters:

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

Example:

documentRef.update({'age': 31});

Implementation

void update(Data data) => database._u(key, data);