GaugePointer class

An additional needle that can be overlaid on a RadialGauge.

Use RadialGauge.extraPointers to add one or more secondary needles, for example to show a speed limit, a target value, or a min/max marker.

RadialGauge(
  controller: speedCtrl,
  min: 0, max: 200,
  extraPointers: [
    GaugePointer(
      controller: limitCtrl,
      color: Colors.red,
      label: 'Speed limit',
    ),
  ],
)

Constructors

GaugePointer({required GaugeController controller, Color? color, double? strokeWidth, double lengthFraction = 0.75, String? label})
Creates a gauge pointer.
const

Properties

color → Color?
Needle colour. Defaults to the gauge token needle colour at 70% opacity.
final
controller → GaugeController
The controller that drives this pointer's angular position.
final
hashCode → int
The hash code for this object.
no setterinherited
label → String?
Semantic label for this pointer, announced by screen readers.
final
lengthFraction → double
Fraction of the gauge radius that the needle extends to (0.0–1.0). Defaults to 0.75, which places the tip slightly inside the main needle.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strokeWidth → double?
Needle stroke width. Defaults to the gauge token needle width.
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