DarkModeSwitch constructor

const DarkModeSwitch({
  1. Key? key,
  2. double width = 46.0,
  3. double height = 25.0,
  4. double slideSize = 21.0,
  5. double borderWidth = 1.0,
  6. Color borderColor = Colors.grey,
  7. Duration duration = const Duration(milliseconds: 300),
})

Implementation

const DarkModeSwitch({
  super.key,
  this.width = 46.0,
  this.height = 25.0,
  this.slideSize = 21.0,
  this.borderWidth = 1.0,
  this.borderColor = Colors.grey,
  this.duration = const Duration(milliseconds: 300),
});