SimpleSwitch constructor

SimpleSwitch({
  1. Key? key,
  2. required dynamic item,
  3. required Function onChange,
  4. required int position,
  5. Map errorMessages = const {},
  6. Map validations = const {},
  7. Map decorations = const {},
  8. Map keyboardTypes = const {},
})

Implementation

SimpleSwitch({
  Key? key,
  required this.item,
  required this.onChange,
  required this.position,
  this.errorMessages = const {},
  this.validations = const {},
  this.decorations = const {},
  this.keyboardTypes = const {},
}) : super(key: key);