SeniorSwitch constructor

const SeniorSwitch({
  1. Key? key,
  2. bool disabled = false,
  3. bool fullLenght = false,
  4. SeniorSwitchTitlePosition titlePosition = SeniorSwitchTitlePosition.left,
  5. required dynamic onChanged(
    1. bool?
    ),
  6. SeniorSwitchStyle? style,
  7. String? title,
  8. required bool value,
})

Creates a Switch component according to SDS.

The onChanged and value parameters are required.

Implementation

const SeniorSwitch({
  Key? key,
  this.disabled = false,
  this.fullLenght = false,
  this.titlePosition = SeniorSwitchTitlePosition.left,
  required this.onChanged,
  this.style,
  this.title,
  required this.value,
}) : super(key: key);