LinearGaugeRenderBox constructor
LinearGaugeRenderBox({
- required GaugeController controller,
- required GaugeTokens tokens,
- required double min,
- required double max,
- required LinearGaugeOrientation orientation,
- required List<
GaugeRange> ranges, - required int majorDivisions,
- required bool showLabels,
- required bool showTicks,
- String? semanticsLabel,
- bool reverse = false,
- bool showValue = false,
- String? unitText,
- String labelFormatter()?,
- double? barRadius,
Implementation
LinearGaugeRenderBox({
required GaugeController controller,
required GaugeTokens tokens,
required double min,
required double max,
required LinearGaugeOrientation orientation,
required List<GaugeRange> ranges,
required int majorDivisions,
required bool showLabels,
required bool showTicks,
String? semanticsLabel,
bool reverse = false,
bool showValue = false,
String? unitText,
String Function(double)? labelFormatter,
double? barRadius,
}) : _controller = controller,
_tokens = tokens,
_min = min,
_max = max,
_orientation = orientation,
_ranges = ranges,
_majorDivisions = majorDivisions,
_showLabels = showLabels,
_showTicks = showTicks,
_semanticsLabel = semanticsLabel,
_reverse = reverse,
_showValue = showValue,
_unitText = unitText,
_labelFormatter = labelFormatter,
_barRadius = barRadius {
_controller.addListener(_onValueChanged);
}