SleekCircularSlider constructor Null safety

const SleekCircularSlider(
  1. {Key? key,
  2. double initialValue = 50,
  3. double min = 0,
  4. double max = 100,
  5. CircularSliderAppearance appearance = defaultAppearance,
  6. OnChange? onChange,
  7. OnChange? onChangeStart,
  8. OnChange? onChangeEnd,
  9. InnerWidget? innerWidget}
)

Implementation

const SleekCircularSlider(
    {Key? key,
    this.initialValue = 50,
    this.min = 0,
    this.max = 100,
    this.appearance = defaultAppearance,
    this.onChange,
    this.onChangeStart,
    this.onChangeEnd,
    this.innerWidget})
    : assert(min <= max),
      assert(initialValue >= min && initialValue <= max),
      super(key: key);