FormBuilderInput.switchInput constructor
Implementation
FormBuilderInput.switchInput({
@required this.label,
@required this.attribute,
this.hint,
this.value,
this.require = false,
this.validator,
}) : assert(value == null || value is bool,
"Initial value for a switch should be boolean") {
type = FormBuilderInput.TYPE_SWITCH;
}