InputSwitch constructor

InputSwitch(
  1. {Key key,
  2. bool autosave,
  3. bool autovalidate,
  4. Color activeColor,
  5. Color color,
  6. InputDecoration decoration,
  7. bool enabled,
  8. bool initialValue,
  9. Map<String, dynamic> map,
  10. ValueChanged<bool> onChanged,
  11. ValueSetter<bool> onSaved,
  12. String path,
  13. List<InputValidator> validators,
  14. bool wantKeepAlive: false}
)

Implementation

InputSwitch({
  Key key,
  bool autosave,
  bool autovalidate,
  this.activeColor,
  this.color,
  InputDecoration decoration,
  bool enabled,
  bool initialValue,
  Map<String, dynamic> map,
  ValueChanged<bool> onChanged,
  ValueSetter<bool> onSaved,
  String path,
  List<InputValidator> validators,
  bool wantKeepAlive = false,
}) : super(
        key: key,
        autosave: autosave,
        autovalidate: autovalidate,
        decoration: decoration,
        enabled: enabled,
        initialValue: initialValue,
        map: map,
        onChanged: onChanged,
        onSaved: onSaved,
        path: path,
        validators: validators,
        wantKeepAlive: wantKeepAlive,
      );