FormSwitch constructor

FormSwitch({
  1. Key key,
  2. YekongaForm formControl,
  3. @required String name,
  4. @required bool value,
  5. @required ValueChanged<bool> onChanged,
  6. Color activeColor,
  7. Color tileColor,
  8. Widget title,
  9. Widget subtitle,
  10. bool isThreeLine = false,
  11. bool dense,
  12. Widget secondary,
  13. bool selected = false,
  14. ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform,
  15. bool autofocus = false,
  16. bool isRequired = false,
  17. EdgeInsetsGeometry contentPadding = EdgeInsets.zero,
  18. ShapeBorder shape,
  19. Color selectedTileColor,
})

Implementation

FormSwitch({
  Key key,
  this.formControl,
  @required this.name,
  @required this.value,
  @required this.onChanged,
  this.activeColor,
  this.tileColor,
  this.title,
  this.subtitle,
  this.isThreeLine = false,
  this.dense,
  this.secondary,
  this.selected = false,
  this.controlAffinity = ListTileControlAffinity.platform,
  this.autofocus = false,
  this.isRequired = false,
  this.contentPadding = EdgeInsets.zero,
  this.shape,
  this.selectedTileColor,
}) : super(key: key);