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.
read-onlyinherited
haveText bool
Whether the text is not null or empty;
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
style LabelStyle
The label style.
read / write
text String?
The label text.
read / write

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