DayNightSwitch constructor

const DayNightSwitch({
  1. Key? key,
  2. bool initiallyDark = false,
  3. Duration duration = const Duration(milliseconds: 600),
  4. double size = 30,
  5. required dynamic onChange(
    1. bool
    ),
})

This is a constructor to initialize the DayNightSwitch

Implementation

const DayNightSwitch({
  super.key,
  this.initiallyDark = false,
  this.duration = const Duration(milliseconds: 600),
  this.size = 30,
  required this.onChange,
});