LinearGaugeRange constructor

const LinearGaugeRange({
  1. Key? key,
  2. double startValue = 0,
  3. double? midValue,
  4. double endValue = 100,
  5. double startWidth = 5.0,
  6. double endWidth = 5.0,
  7. double? midWidth,
  8. Color? color,
  9. ShaderCallback? shaderCallback,
  10. LinearRangeShapeType rangeShapeType = LinearRangeShapeType.flat,
  11. LinearEdgeStyle edgeStyle = LinearEdgeStyle.bothFlat,
  12. LinearElementPosition position = LinearElementPosition.outside,
  13. Widget? child,
})

Creates a new range in linear gauge.

Implementation

const LinearGaugeRange({
  Key? key,
  this.startValue = 0,
  double? midValue,
  this.endValue = 100,
  this.startWidth = 5.0,
  this.endWidth = 5.0,
  double? midWidth,
  this.color,
  this.shaderCallback,
  this.rangeShapeType = LinearRangeShapeType.flat,
  this.edgeStyle = LinearEdgeStyle.bothFlat,
  this.position = LinearElementPosition.outside,
  Widget? child,
}) : assert(startValue <= endValue),
     midValue = midValue ?? startValue,
     midWidth = midWidth ?? startWidth,
     super(key: key, child: child);