mutate method

void mutate(
  1. T updater(
    1. T? current
    )
)

Applies a local mutation to the current data.

Implementation

void mutate(T Function(T? current) updater) {
  setData(updater(snapshot.data));
}