A UserTag can be used to group samples in the Observatory profiler.

Constants

MAX_USER_TAGS → dynamic

The maximum number of UserTag instances that can be created by a program.

const 64

Static Properties

defaultTag UserTag

The default UserTag with label 'Default'.

read-only

Constructors

UserTag(String label)

factory

Properties

hashCode int

Get a hash code for this object.

read-only, inherited
label String

Label of this.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

makeCurrent() UserTag

Make this the current tag for the isolate. Returns the current tag before setting.

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
toString() String

Returns a string representation of this object.

inherited