Label class

Specification of a label.

A label is a span of text with styles. In is used for LabelEncode, TagAnnotation, etc in the chart.

If the text is null or empty, the label will render nothing.

Constructors

Label(String? text, [LabelStyle? style])
Creates a label.

Properties

hashCode int
The hash code for this object.
no setterinherited
haveText bool
Whether the text is not null or empty;
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style LabelStyle
The label style.
getter/setter pair
text String?
The label text.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override