LinearGaugeRenderBox constructor

LinearGaugeRenderBox({
  1. required GaugeController controller,
  2. required GaugeTokens tokens,
  3. required double min,
  4. required double max,
  5. required LinearGaugeOrientation orientation,
  6. required List<GaugeRange> ranges,
  7. required int majorDivisions,
  8. required bool showLabels,
  9. required bool showTicks,
  10. String? semanticsLabel,
  11. bool reverse = false,
  12. bool showValue = false,
  13. String? unitText,
  14. String labelFormatter(
    1. double
    )?,
  15. 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);
}