finishSync method

void finishSync()

Finish the last synchronous operation that was started.

Source

static void finishSync() {
  if (_isProduct) {
    return;
  }
  if (_stack.length == 0) {
    throw new StateError('Uneven calls to startSync and finishSync');
  }
  // Pop top item off of stack.
  var block = _stack.removeLast();
  if (block == null) {
    // Dart stream was disabled when startSync was called.
    return;
  }
  // Finish it.
  block.finish();
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-developer/Timeline/finishSync.html