NeedlePointer constructor
const
NeedlePointer({
- Key? key,
- required double value,
- LinearGradient? gradient,
- Color color = Colors.red,
- Color tailColor = Colors.red,
- double needleWidth = 40,
- double needleHeight = 300,
- ValueChanged<
double> ? onChanged, - bool isInteractive = false,
- NeedleStyle needleStyle = NeedleStyle.gaugeNeedle,
- 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);