TimelineTask.withTaskId constructor

TimelineTask.withTaskId(int taskId)

Create a task with an explicit taskId. This is useful if you are passing a task from one isolate to another.

Source

TimelineTask.withTaskId(int taskId) : _taskId = taskId {
  if (taskId is! int) {
    throw new ArgumentError.value(taskId, 'taskId', 'Must be an int');
  }
}

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