FormBuilderSwitch constructor

FormBuilderSwitch({Key key, @required String attribute, @required Widget label, bool initialValue, 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, FormFieldSetter onSaved })

Implementation

FormBuilderSwitch({
  Key key,
  @required this.attribute,
  @required this.label,
  this.initialValue,
  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,
  this.onSaved,
}) : super(key: key);