FormSwitch constructor
FormSwitch({
- Key key,
- YekongaForm formControl,
- @required String name,
- @required bool value,
- @required ValueChanged<
bool> onChanged, - Color activeColor,
- Color tileColor,
- Widget title,
- Widget subtitle,
- bool isThreeLine = false,
- bool dense,
- Widget secondary,
- bool selected = false,
- ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform,
- bool autofocus = false,
- bool isRequired = false,
- EdgeInsetsGeometry contentPadding = EdgeInsets.zero,
- ShapeBorder shape,
- 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);