FlutterSliderTrackBar constructor

const FlutterSliderTrackBar({
  1. BoxDecoration? inactiveTrackBar,
  2. BoxDecoration? activeTrackBar,
  3. Color activeDisabledTrackBarColor = const Color(0xffb5b5b5),
  4. Color inactiveDisabledTrackBarColor = const Color(0xffe5e5e5),
  5. double activeTrackBarHeight = 3.5,
  6. double inactiveTrackBarHeight = 3,
  7. Widget? centralWidget,
  8. bool activeTrackBarDraggable = true,
})

Implementation

const FlutterSliderTrackBar({
  this.inactiveTrackBar,
  this.activeTrackBar,
  this.activeDisabledTrackBarColor = const Color(0xffb5b5b5),
  this.inactiveDisabledTrackBarColor = const Color(0xffe5e5e5),
  this.activeTrackBarHeight = 3.5,
  this.inactiveTrackBarHeight = 3,
  this.centralWidget,
  this.activeTrackBarDraggable = true,
}) : assert(activeTrackBarHeight > 0 && inactiveTrackBarHeight > 0);