batch<T> method

T batch<T>(
  1. T action()
)

Runs action while coalescing synchronous reactive notifications so downstream listeners and Computed values fire at most once when the outermost batch completes.

Implementation

T batch<T>(T Function() action) => ListNotifier.batch(action);