GaugePointerPosition.surface constructor

const GaugePointerPosition.surface({
  1. Offset offset = Offset.zero,
})

The pointer is positioned above the surface of the indicator segments.

To position the pointer below or above the segments, use the offset argument and move the pointer by the thickness of the axis.

GaugePointerPosition.surface(
  offset: Offset(0.0, axisThickness),  // below the segments
);
GaugePointerPosition.surface(
  offset: Offset(0.0, -axisThickness), // above the segments
)

Implementation

const GaugePointerPosition.surface({
  this.offset = Offset.zero,
}) : anchor = GaugePointerAnchor.surface;