ArcGaugeRenderBox constructor

ArcGaugeRenderBox({
  1. required GaugeController controller,
  2. required GaugeTokens tokens,
  3. required double min,
  4. required double max,
  5. required double startAngleDeg,
  6. required double sweepAngleDeg,
  7. required String? centerLabel,
  8. required TextStyle? centerLabelStyle,
  9. List<GaugeRange> ranges = const [],
  10. String? semanticsLabel,
  11. Color? fillColor,
  12. bool reverse = false,
  13. bool showValue = true,
  14. String? unitText,
  15. 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);
}