IntegerTextFormField constructor
const
IntegerTextFormField({
- Key? key,
- FooFieldController<
String> ? controller, - String? initialValue,
- FocusNode? focusNode,
- InputDecoration? decoration = const InputDecoration(),
- TextStyle? style,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- bool autofocus = false,
- bool readOnly = false,
- void onChanged(
- String? value
- GestureTapCallback? onTap,
- VoidCallback? onEditingComplete,
- ValueChanged<
String?> ? onFieldSubmitted, - void onSaved(
- String? value
- String? validator(
- String? value
- FormFieldErrorBuilder? errorBuilder,
- bool? enabled,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Color? cursorErrorColor,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- ScrollPhysics? scrollPhysics,
- AutovalidateMode? autovalidateMode,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- Clip clipBehavior = Clip.hardEdge,
- bool canRequestFocus = true,
- String invalidIntegerMessage = "Invalid",
- 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(),
});