An asynchronous task on the timeline. Asynchronous tasks can live longer than the current event and can even be shared between isolates. An asynchronous task can have many (nested) blocks. To share a TimelineTask across isolates, you must construct a TimelineTask in both isolates using the same taskId and category.

Constructors

TimelineTask({String category: 'Dart'})

Create a task. taskId will be set by the system. Optionally you can specify a category name.

TimelineTask.withTaskId(int taskId, {String category: 'Dart'})

Create a task with an explicit taskId. This is useful if you are passing a task between isolates. Optionally you can specify a category name.

Properties

category String

Retrieve the asynchronous task's category. Can be used to construct a TimelineTask in another isolate.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
taskId int

Retrieve the asynchronous task's id. Can be used to construct a TimelineTask in another isolate.

read-only

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

inherited
start(String name, {arguments}) AsyncBlock

Start a block in this task named name. Optionally takes a Map of arguments. Returns an AsyncBlock which is used to finish this block.

toString() String

Returns a string representation of this object.

inherited