FormBuilderInput.stepper constructor

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

Implementation

FormBuilderInput.stepper({
  @required this.label,
  @required this.attribute,
  this.readonly = false,
  this.value,
  this.hint,
  this.min,
  this.max,
  this.step,
  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_STEPPER;
}