ArcGaugeRenderBox constructor
ArcGaugeRenderBox({
- required GaugeController controller,
- required GaugeTokens tokens,
- required double min,
- required double max,
- required double startAngleDeg,
- required double sweepAngleDeg,
- required String? centerLabel,
- required TextStyle? centerLabelStyle,
- List<
GaugeRange> ranges = const [], - String? semanticsLabel,
- Color? fillColor,
- bool reverse = false,
- bool showValue = true,
- String? unitText,
- double? backgroundWidth,
Implementation
ArcGaugeRenderBox({
required GaugeController controller,
required GaugeTokens tokens,
required double min,
required double max,
required double startAngleDeg,
required double sweepAngleDeg,
required String? centerLabel,
required TextStyle? centerLabelStyle,
List<GaugeRange> ranges = const [],
String? semanticsLabel,
Color? fillColor,
bool reverse = false,
bool showValue = true,
String? unitText,
double? backgroundWidth,
}) : _controller = controller,
_tokens = tokens,
_min = min,
_max = max,
_startAngleDeg = startAngleDeg,
_sweepAngleDeg = sweepAngleDeg,
_centerLabel = centerLabel,
_centerLabelStyle = centerLabelStyle,
_ranges = ranges,
_semanticsLabel = semanticsLabel,
_fillColor = fillColor,
_reverse = reverse,
_showValue = showValue,
_unitText = unitText,
_backgroundWidth = backgroundWidth {
_controller.addListener(_onValueChanged);
}