InputSpinner<T extends num> constructor

InputSpinner<T extends num>(
  1. {Key key,
  2. bool autovalidate: false,
  3. int divisions: 100,
  4. InputDecoration decoration,
  5. bool enabled,
  6. IconData iconDecrease: Icons.remove_circle,
  7. Color iconDecreaseColor,
  8. IconData iconIncrease: Icons.add_circle,
  9. Color iconIncreaseColor,
  10. T initialValue,
  11. Map<String, dynamic> map,
  12. num min: 0.0,
  13. num max: 100.0,
  14. ValueChanged<T> onChanged,
  15. ValueSetter<T> onSaved,
  16. String path,
  17. double size: 25.0,
  18. List<InputValidator> validators,
  19. bool wantKeepAlive: false}
)

Implementation

InputSpinner({
  Key key,
  bool autovalidate = false,
  this.divisions = 100,
  InputDecoration decoration,
  bool enabled,
  this.iconDecrease = Icons.remove_circle,
  this.iconDecreaseColor,
  this.iconIncrease = Icons.add_circle,
  this.iconIncreaseColor,
  T initialValue,
  Map<String, dynamic> map,
  this.min = 0.0,
  this.max = 100.0,
  ValueChanged<T> onChanged,
  ValueSetter<T> onSaved,
  String path,
  this.size = 25.0,
  List<InputValidator> validators,
  bool wantKeepAlive = false,
})  : assert(size != null),
      assert(min < max),
      assert(divisions != null),
      interval = (max - min) / divisions,
      super(
        key: key,
        autovalidate: autovalidate,
        decoration: decoration,
        enabled: enabled,
        initialValue: initialValue,
        map: map,
        onChanged: onChanged,
        onSaved: onSaved,
        path: path,
        validators: validators,
        wantKeepAlive: wantKeepAlive,
      );