SwitchField constructor

const SwitchField({
  1. Key? key,
  2. String? text,
  3. bool value = false,
  4. void onChanged(
    1. bool
    )?,
})

Implementation

const SwitchField({super.key, this.text, this.value = false, this.onChanged});