FormBuilderInput.rate constructor

FormBuilderInput.rate({@required String label, @required String attribute, @required dynamic max, dynamic value, IconData icon, double iconSize, String hint, bool require: false, FormFieldValidator validator })

Implementation

FormBuilderInput.rate({
  @required this.label,
  @required this.attribute,
  @required this.max,
  this.value,
  this.icon,
  this.iconSize,
  this.hint,
  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;
}