FormBuilderInput.checkbox constructor

FormBuilderInput.checkbox({@required String label, @required String attribute, String hint, dynamic value, bool require: false, FormFieldValidator validator })

Implementation

FormBuilderInput.checkbox({
  @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 checkbox should be boolean") {
  type = FormBuilderInput.TYPE_CHECKBOX;
}