FMNumberField constructor
const
FMNumberField({
- Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- InputDecoration? decoration = const InputDecoration(),
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- bool autofocus = false,
- bool readOnly = false,
- bool? showCursor,
- ValueChanged<
String> ? onChanged, - GestureTapCallback? onTap,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onFieldSubmitted, - void onSaved()?,
- bool? enabled,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- TextSelectionControls? selectionControls,
- ScrollPhysics? scrollPhysics,
- ScrollController? scrollController,
- String? restorationId,
- MouseCursor? mouseCursor,
Card Number Field
Type: TextFormField
customized.
This is the field that controls the Card Number validations which are immutable. Although other properties like decorations and more can be customized to fit needs.
Implementation
const FMNumberField({
super.key,
this.controller,
this.focusNode,
this.decoration = const InputDecoration(),
this.textInputAction,
this.style,
this.strutStyle,
this.textDirection,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.autofocus = false,
this.readOnly = false,
this.showCursor,
this.onChanged,
this.onTap,
this.onEditingComplete,
this.onFieldSubmitted,
this.onSaved,
this.enabled,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.keyboardAppearance,
this.scrollPadding = const EdgeInsets.all(20.0),
this.selectionControls,
this.scrollPhysics,
this.scrollController,
this.restorationId,
this.mouseCursor,
});