LinearGaugeRange constructor
const
LinearGaugeRange({})
Creates a linear gauge range.
Implementation
// ignore: sort_constructors_first
const LinearGaugeRange({
required this.start,
required this.end,
required this.color,
this.label,
this.sizeRatio,
}) : assert(
start >= 0.0 && start <= 1.0, 'start must be between 0.0 and 1.0'),
assert(end >= 0.0 && end <= 1.0, 'end must be between 0.0 and 1.0'),
assert(start <= end, 'start must be <= end');