updateWith method

void updateWith({
  1. double? balloonWidth,
  2. double? thumbSize,
  3. Color? thumbColor,
  4. Color? inactiveTrackColor,
  5. Color? activeTrackColor,
  6. TextStyle? balloonTextStyle,
})

Implementation

void updateWith({
  double? balloonWidth,
  double? thumbSize,
  Color? thumbColor,
  Color? inactiveTrackColor,
  Color? activeTrackColor,
  TextStyle? balloonTextStyle,
}) {
  _inactiveTrackColor = inactiveTrackColor ?? _inactiveTrackColor;
  _activeTrackColor = activeTrackColor ?? _activeTrackColor;
  _thumbColor = thumbColor ?? _thumbColor;
  _thumbSize = thumbSize ?? _thumbSize;
  _balloonWidth = balloonWidth ?? _balloonWidth;
  markNeedsPaint();
}