ToggleSwitchProps constructor

const ToggleSwitchProps({
  1. required bool value,
  2. void onChanged(
    1. bool
    )?,
  3. bool disabled = false,
  4. ComponentSize size = ComponentSize.md,
  5. ColorVariant color = ColorVariant.primary,
  6. String? label,
  7. bool labelLeft = false,
})

Implementation

const ToggleSwitchProps({
  required this.value,
  this.onChanged,
  this.disabled = false,
  this.size = ComponentSize.md,
  this.color = ColorVariant.primary,
  this.label,
  this.labelLeft = false,
});