LinearGaugeRange constructor
const
LinearGaugeRange({
- Key? key,
- double startValue = 0,
- double? midValue,
- double endValue = 100,
- double startWidth = 5.0,
- double endWidth = 5.0,
- double? midWidth,
- Color? color,
- ShaderCallback? shaderCallback,
- LinearRangeShapeType rangeShapeType = LinearRangeShapeType.flat,
- LinearEdgeStyle edgeStyle = LinearEdgeStyle.bothFlat,
- LinearElementPosition position = LinearElementPosition.outside,
- 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);