Create a task with an explicit taskId. This is useful if you are passing a task from one isolate to another.
taskId
TimelineTask.withTaskId(int taskId) : _taskId = taskId { ArgumentError.checkNotNull(taskId, 'taskId'); }