InputRating constructor

InputRating(
  1. {Key key,
  2. bool autovalidate: false,
  3. Color borderColor,
  4. Color color,
  5. InputDecoration decoration,
  6. bool enabled,
  7. int iconCount: 5,
  8. Widget iconEmpty,
  9. Widget iconFull,
  10. Widget iconHalf,
  11. double initialValue,
  12. Map<String, dynamic> map,
  13. double min: 0.0,
  14. double max: 100.0,
  15. ValueChanged<double> onChanged,
  16. ValueSetter<double> onSaved,
  17. String path,
  18. double size: 25.0,
  19. List<InputValidator> validators,
  20. bool wantKeepAlive: false}
)

Implementation

InputRating({
  Key key,
  bool autovalidate = false,
  this.borderColor,
  this.color,
  InputDecoration decoration,
  bool enabled,
  this.iconCount = 5,
  Widget iconEmpty,
  Widget iconFull,
  Widget iconHalf,
  double initialValue,
  Map<String, dynamic> map,
  this.min = 0.0,
  this.max = 100.0,
  ValueChanged<double> onChanged,
  ValueSetter<double> onSaved,
  String path,
  this.size = 25.0,
  List<InputValidator> validators,
  bool wantKeepAlive = false,
})  : assert(min < max),
      iconEmpty = iconEmpty ?? Icons.star_border,
      iconHalf = iconHalf ?? Icons.star_half,
      iconFull = iconFull ?? Icons.star,
      super(
        key: key,
        autovalidate: autovalidate,
        decoration: decoration,
        enabled: enabled,
        initialValue: initialValue,
        map: map,
        onChanged: onChanged,
        onSaved: onSaved,
        path: path,
        validators: validators,
        wantKeepAlive: wantKeepAlive,
      );