IntegerTextFormField constructor

const IntegerTextFormField({
  1. Key? key,
  2. FooFieldController<String>? controller,
  3. String? initialValue,
  4. FocusNode? focusNode,
  5. InputDecoration? decoration = const InputDecoration(),
  6. TextStyle? style,
  7. TextAlign textAlign = TextAlign.start,
  8. TextAlignVertical? textAlignVertical,
  9. bool autofocus = false,
  10. bool readOnly = false,
  11. void onChanged(
    1. String? value
    )?,
  12. GestureTapCallback? onTap,
  13. VoidCallback? onEditingComplete,
  14. ValueChanged<String?>? onFieldSubmitted,
  15. void onSaved(
    1. String? value
    )?,
  16. String? validator(
    1. String? value
    )?,
  17. FormFieldErrorBuilder? errorBuilder,
  18. bool? enabled,
  19. double cursorWidth = 2.0,
  20. double? cursorHeight,
  21. Radius? cursorRadius,
  22. Color? cursorColor,
  23. Color? cursorErrorColor,
  24. Brightness? keyboardAppearance,
  25. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  26. ScrollPhysics? scrollPhysics,
  27. AutovalidateMode? autovalidateMode,
  28. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  29. Clip clipBehavior = Clip.hardEdge,
  30. bool canRequestFocus = true,
  31. String invalidIntegerMessage = "Invalid",
  32. IntegerTextInputFormatter inputFormatter = const IntegerTextInputFormatter(),
})

Implementation

const IntegerTextFormField({
  super.key,
  super.controller,
  this.initialValue,
  this.focusNode,
  this.decoration = const InputDecoration(),
  this.style,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.autofocus = false,
  this.readOnly = false,
  this.onChanged,
  this.onTap,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.validator,
  this.errorBuilder,
  this.enabled,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.cursorErrorColor,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.scrollPhysics,
  this.autovalidateMode,
  this.dragStartBehavior = DragStartBehavior.start,
  this.clipBehavior = Clip.hardEdge,
  this.canRequestFocus = true,
  this.invalidIntegerMessage = "Invalid",
  this.inputFormatter = const IntegerTextInputFormatter(),
});