CustomRulerLabel class

A CustomRulerLabel class allows to add custom text of any kind and assign value to it on the gauge scale.

child : const LinearGauge(
  customLabels: [
    CustomRulerLabel(text: "1%", value: 10),
    CustomRulerLabel(text: "2%", value:20),
    CustomRulerLabel(text: "2.5%", value: 25),
    CustomRulerLabel(text: "3%", value: 30),
]),

Constructors

CustomRulerLabel({required String? text, required double? value})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
text Sets the text of the ruler label on LinearGauge
final
value double?
value Sets the value of the ruler label on LinearGauge
final

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.
inherited