MUISlider constructor

const MUISlider({
  1. Key? key,
  2. double? height = 5,
  3. Color? inactiveColor = const Color(0xffECEFF1),
  4. Color? activeColor = Colors.black,
  5. Color? thumbColor = Colors.white,
  6. required void onChanged(
    1. double
    ),
  7. required double value,
  8. required double min,
  9. required double max,
  10. void onChangeStart(
    1. double
    )?,
  11. void onChangeEnd(
    1. double
    )?,
})

Implementation

const MUISlider(
    {super.key,
    this.height = 5,
    this.inactiveColor = const Color(0xffECEFF1),
    this.activeColor = Colors.black,
    this.thumbColor = Colors.white,
    required this.onChanged,
    required this.value,
    required this.min,
    required this.max,
    this.onChangeStart,
    this.onChangeEnd})
    : assert(min <= max),
      assert(
        value >= min && value <= max,
        'Value $value is not between minimum $min and maximum $max',
      );