NeedlePointer constructor

const NeedlePointer({
  1. Key? key,
  2. required double value,
  3. LinearGradient? gradient,
  4. Color color = Colors.red,
  5. Color tailColor = Colors.red,
  6. double needleWidth = 40,
  7. double needleHeight = 300,
  8. ValueChanged<double>? onChanged,
  9. bool isInteractive = false,
  10. NeedleStyle needleStyle = NeedleStyle.gaugeNeedle,
  11. double tailRadius = 80,
})

Creates a needle pointer for RadialGauge.

 RadialGauge(
  needlePointer: [
    NeedlePointer(value: 30),
  ],
  track: RadialTrack(
    start: 0,
    end: 100,
  ),
 ),

Implementation

const NeedlePointer(
    {Key? key,
    required this.value,
    this.gradient,
    this.color = Colors.red,
    this.tailColor = Colors.red,
    this.needleWidth = 40,
    this.needleHeight = 300,
    this.onChanged,
    this.isInteractive = false,
    this.needleStyle = NeedleStyle.gaugeNeedle,
    this.tailRadius = 80})
    : super(key: key);