Switch constructor

Switch(
  1. BuildContext context, {
  2. double borderRadius = 20,
  3. bool disabled = false,
  4. int durationMilliseconds = 50,
  5. double height = 35,
  6. double margin = lazy.defaultPadding,
  7. double padding = lazy.defaultPadding,
  8. double toggleSize = 25,
  9. double width = 70,
})

Implementation

Switch(
  this.context, {
  this.borderRadius = 20,
  this.disabled = false,
  this.durationMilliseconds = 50,
  this.height = 35,
  this.margin = lazy.defaultPadding,
  this.padding = lazy.defaultPadding,
  this.toggleSize = 25,
  this.width = 70,
});