batch method

void batch(
  1. VoidCallback callback
)

If more changes to the underlying list need be applied in a row, it is more efficient to call this method and notify all the changes within the callback.

Implementation

void batch(VoidCallback callback) {
  assert(_debugAssertBinded());
  _interface!.batch(callback);
}