TimelineTask.withTaskId constructor
Create a task with an explicit taskId
. This is useful if you are
passing a task from one isolate to another.
Implementation
TimelineTask.withTaskId(int taskId) : _taskId = taskId {
if (taskId is! int) {
throw new ArgumentError.value(taskId, 'taskId', 'Must be an int');
}
}