RadialTrack constructor

const RadialTrack({
  1. Key? key,
  2. required double start,
  3. required double end,
  4. double startAngle = -30,
  5. int steps = 10,
  6. double endAngle = 210,
  7. Color color = Colors.grey,
  8. bool hideLabels = false,
  9. bool hideTrack = false,
  10. double thickness = 10,
  11. TrackStyle trackStyle = const TrackStyle(labelStyle: TextStyle(fontSize: 12, color: Colors.black), primaryRulersHeight: 25, primaryRulerColor: Colors.black54, secondaryRulerColor: Colors.grey, inverseRulers: false, secondaryRulersHeight: 15, primaryRulersWidth: 1.0, secondaryRulerPerInterval: 4.0),
  12. LinearGradient? gradient,
  13. String trackLabelFormater(
    1. double
    )?,
})

The RadialTrack is used to set the track of the Radial Gauge.

The start property is used to set the start value of the Radial Gauge. The end property is used to set the end value of the Radial Gauge. The startAngle property is used to set the start angle of the Radial Gauge. The endAngle property is used to set the end angle of the Radial Gauge.

RadialGauge(
         track: RadialTrack(
           start: 0,
           end: 100,
          startAngle: 0,
          endAngle: 360,
        ),
    ),

Implementation

const RadialTrack({
  Key? key,
  required this.start,
  required this.end,
  this.startAngle = -30,
  this.steps = 10,
  this.endAngle = 210,
  this.color = Colors.grey,
  this.hideLabels = false,
  this.hideTrack = false,
  this.thickness = 10,
  this.trackStyle = const TrackStyle(
    labelStyle: TextStyle(
      fontSize: 12,
      color: Colors.black,
    ),
    primaryRulersHeight: 25,
    primaryRulerColor: Colors.black54,
    secondaryRulerColor: Colors.grey,
    inverseRulers: false,
    secondaryRulersHeight: 15,
    primaryRulersWidth: 1.0,
    secondaryRulerPerInterval: 4.0,
  ),
  this.gradient,
  this.trackLabelFormater,
});