FormBuilderInput.rate constructor
FormBuilderInput.rate({@required InputDecoration decoration, @required String attribute, @required dynamic max, bool readonly: false, dynamic value, IconData icon, double iconSize, bool require: false, FormFieldValidator validator })
Implementation
FormBuilderInput.rate({
@required this.decoration,
@required this.attribute,
@required this.max,
this.readonly = false,
this.value,
this.icon,
this.iconSize,
this.require = false,
this.validator,
}) : assert(max == null || max is num),
assert(max > value || value == null,
"Initial value cannot be higher than Max") {
type = FormBuilderInput.TYPE_RATE;
}