FOtpField constructor
FOtpField({
- FOtpFieldControl control = const .managed(),
- FOtpFieldStyleDelta style = const .context(),
- FFieldBuilder<
FOtpFieldStyle> builder = defaultBuilder, - Widget? label,
- Widget? description,
- TextMagnifierConfiguration? magnifierConfiguration,
- Object groupId = EditableText,
- FocusNode? focusNode,
- TextInputType? keyboardType = .text,
- TextInputAction? textInputAction = .done,
- TextCapitalization textCapitalization = .none,
- TextDirection? textDirection,
- bool autofocus = false,
- WidgetStatesController? statesController,
- bool readOnly = false,
- GestureTapCallback? onTap,
- TapRegionCallback? onTapOutside,
- bool onTapAlwaysCalled = false,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmit, - AppPrivateCommandCallback? onAppPrivateCommand,
- List<
TextInputFormatter> ? inputFormatters, - bool enabled = true,
- bool? ignorePointers,
- bool enableInteractiveSelection = true,
- TextSelectionControls? selectionControls,
- DragStartBehavior dragStartBehavior = .start,
- MouseCursor? mouseCursor,
- Iterable<
String> ? autofillHints = const [AutofillHints.oneTimeCode], - String? restorationId,
- bool stylusHandwritingEnabled = true,
- bool enableIMEPersonalizedLearning = true,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- EditableTextContextMenuBuilder? contextMenuBuilder = FTextField.defaultContextMenuBuilder,
- bool canRequestFocus = true,
- UndoHistoryController? undoController,
- FormFieldSetter<
String> ? onSaved, - VoidCallback? onReset,
- FormFieldValidator<
String> ? validator, - AutovalidateMode autovalidateMode = .disabled,
- String? forceErrorText,
- Widget errorBuilder(
- BuildContext context,
- String message
- Key? formFieldKey,
- Key? key,
Creates an FOtpField.
Implementation
FOtpField({
this.control = const .managed(),
this.style = const .context(),
this.builder = defaultBuilder,
this.label,
this.description,
this.magnifierConfiguration,
this.groupId = EditableText,
this.focusNode,
this.keyboardType = .text,
this.textInputAction = .done,
this.textCapitalization = .none,
this.textDirection,
this.autofocus = false,
this.statesController,
this.readOnly = false,
this.onTap,
this.onTapOutside,
this.onTapAlwaysCalled = false,
this.onEditingComplete,
this.onSubmit,
this.onAppPrivateCommand,
List<TextInputFormatter>? inputFormatters,
this.enabled = true,
this.ignorePointers,
this.enableInteractiveSelection = true,
this.selectionControls,
this.dragStartBehavior = .start,
this.mouseCursor,
this.autofillHints = const [AutofillHints.oneTimeCode],
this.restorationId,
this.stylusHandwritingEnabled = true,
this.enableIMEPersonalizedLearning = true,
this.contentInsertionConfiguration,
this.contextMenuBuilder = FTextField.defaultContextMenuBuilder,
this.canRequestFocus = true,
this.undoController,
this.onSaved,
this.onReset,
this.validator,
this.autovalidateMode = .disabled,
this.forceErrorText,
this.errorBuilder = FFormFieldProperties.defaultErrorBuilder,
this.formFieldKey,
super.key,
}) : inputFormatters = inputFormatters ?? defaultInputFormatters;