FormBuilderSwitch constructor

FormBuilderSwitch({@required String attribute, @required Widget label, bool initialValue: false, List<FormFieldValidator> validators: const [], bool readOnly: false, InputDecoration decoration: const InputDecoration(), ValueChanged onChanged, ValueTransformer valueTransformer, Color activeColor, Color activeTrackColor, Color inactiveThumbColor, Color inactiveTrackColor, ImageProvider activeThumbImage, ImageProvider inactiveThumbImage, MaterialTapTargetSize materialTapTargetSize, DragStartBehavior dragStartBehavior: DragStartBehavior.start })

Implementation

FormBuilderSwitch({
  @required this.attribute,
  @required this.label,
  this.initialValue = false,
  this.validators = const [],
  this.readOnly = false,
  this.decoration = const InputDecoration(),
  this.onChanged,
  this.valueTransformer,
  this.activeColor,
  this.activeTrackColor,
  this.inactiveThumbColor,
  this.inactiveTrackColor,
  this.activeThumbImage,
  this.inactiveThumbImage,
  this.materialTapTargetSize,
  this.dragStartBehavior = DragStartBehavior.start,
});