Switch constructor

const Switch({
  1. required Key id,
  2. required bool checked,
  3. void onChanged(
    1. bool value
    )?,
  4. String? label,
  5. String onIndicator = '[●━]',
  6. String offIndicator = '[━●]',
  7. Style? onStyle,
  8. Style? offStyle,
})

Implementation

const Switch({
  required this.id,
  required this.checked,
  this.onChanged,
  this.label,
  this.onIndicator = '[●━]',
  this.offIndicator = '[━●]',
  this.onStyle,
  this.offStyle,
});