FormBuilderInput.number constructor

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

Implementation

FormBuilderInput.number({
  @required this.label,
  @required this.attribute,
  this.value,
  this.hint,
  this.min,
  this.max,
  this.require = false,
  this.validator,
}) : assert(min == null || max == null || min <= max,
          "Min cannot be higher than Max") {
  type = FormBuilderInput.TYPE_NUMBER;
}