dart / 1.24.3 / dart-developer / timelinetask / pass.html /

pass method

int pass( )

Retrieve the TimelineTask's task id. Will throw an exception if the stack is not empty.

Source

int pass() {
  if (_stack.length > 0) {
    throw new StateError(
        'You cannot pass a TimelineTask without finishing all started '
        'operations');
  }
  int r = _taskId;
  return r;
}

© 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/TimelineTask/pass.html