startTransAction method

void startTransAction()

Starts a transaction that allows to make multiple changes to the List with only one notification at the end.

Implementation

void startTransAction() {
  assert(!_inTransaction, 'Only one transaction at a time in ListNotifier');
  _inTransaction = true;
}