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