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}
)

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,
})  : assert(activeTrackBarHeight != null &&
          activeTrackBarHeight > 0 &&
          inactiveTrackBarHeight != null &&
          inactiveTrackBarHeight > 0),
      assert(activeDisabledTrackBarColor != null &&
          inactiveDisabledTrackBarColor != null);