SwichWidget constructor

const SwichWidget({
  1. Key? key,
  2. required bool value,
  3. required dynamic onChanged(
    1. bool
    ),
  4. String? titulo,
  5. Color? activeColor,
  6. Color? activeTrackColor,
  7. Color? inactiveThumbColor,
  8. Color? inactiveTrackColor,
  9. WidgetStateProperty<Color?>? thumbColor,
  10. WidgetStateProperty<Color?>? trackColor,
  11. WidgetStateProperty<Color?>? trackOutlineColor,
})

Switch en Android y en iOS

Implementation

const SwichWidget({
  super.key,
  required this.value,
  required this.onChanged,
  this.titulo,
  this.activeColor,
  this.activeTrackColor,
  this.inactiveThumbColor,
  this.inactiveTrackColor,
  this.thumbColor,
  this.trackColor,
  this.trackOutlineColor,
});