RenderLinearGauge constructor

RenderLinearGauge({
  1. required double start,
  2. required double end,
  3. required double steps,
  4. required bool showLinearGaugeContainer,
  5. required GaugeOrientation gaugeOrientation,
  6. required TextStyle textStyle,
  7. required double primaryRulersWidth,
  8. required double primaryRulersHeight,
  9. required double secondaryRulersHeight,
  10. required double secondaryRulersWidth,
  11. required double labelTopMargin,
  12. required Color primaryRulerColor,
  13. required Color secondaryRulerColor,
  14. required LinearGaugeBoxDecoration linearGaugeBoxDecoration,
  15. required double secondaryRulerPerInterval,
  16. required Color linearGaugeContainerBgColor,
  17. required Color linearGaugeContainerValueColor,
  18. required double labelSize,
  19. required Color labelColor,
  20. required bool showLabel,
  21. required bool showSecondaryRulers,
  22. required bool showPrimaryRulers,
  23. required double value,
})

Implementation

RenderLinearGauge({
  required double start,
  required double end,
  required double steps,
  required bool showLinearGaugeContainer,
  required GaugeOrientation gaugeOrientation,
  required TextStyle textStyle,
  required double primaryRulersWidth,
  required double primaryRulersHeight,
  required double secondaryRulersHeight,
  required double secondaryRulersWidth,
  required double labelTopMargin,
  required Color primaryRulerColor,
  required Color secondaryRulerColor,
  required LinearGaugeBoxDecoration linearGaugeBoxDecoration,
  required double secondaryRulerPerInterval,
  required Color linearGaugeContainerBgColor,
  required Color linearGaugeContainerValueColor,
  required double labelSize,
  required Color labelColor,
  required bool showLabel,
  required bool showSecondaryRulers,
  required bool showPrimaryRulers,
  required double value,
})  : assert(start < end, "Start should be grater then end"),
      _start = start,
      _end = end,
      _steps = steps,
      _showLinearGaugeContainer = showLinearGaugeContainer,
      _gaugeOrientation = gaugeOrientation,
      _textStyle = textStyle,
      _primaryRulerColor = primaryRulerColor,
      _primaryRulersWidth = primaryRulersWidth,
      _primaryRulersHeight = primaryRulersHeight,
      _secondaryRulerColor = secondaryRulerColor,
      _secondaryRulersHeight = secondaryRulersHeight,
      _secondaryRulersWidth = secondaryRulersWidth,
      _labelTopMargin = labelTopMargin,
      _linearGaugeBoxDecoration = linearGaugeBoxDecoration,
      _secondaryRulerPerInterval = secondaryRulerPerInterval,
      _linearGaugeContainerBgColor = linearGaugeBoxDecoration.backgroundColor,
      _linearGaugeContainerValueColor = linearGaugeContainerValueColor,
      _labelSize = labelSize,
      _labelColor = labelColor,
      _showLabel = showLabel,
      _showSecondaryRulers = showSecondaryRulers,
      _showPrimaryRulers = showPrimaryRulers,
      _value = value;