FOtpField constructor

FOtpField({
  1. FOtpFieldControl control = const .managed(),
  2. FOtpFieldStyleDelta style = const .context(),
  3. FFieldBuilder<FOtpFieldStyle> builder = defaultBuilder,
  4. Widget? label,
  5. Widget? description,
  6. TextMagnifierConfiguration? magnifierConfiguration,
  7. Object groupId = EditableText,
  8. FocusNode? focusNode,
  9. TextInputType? keyboardType = .text,
  10. TextInputAction? textInputAction = .done,
  11. TextCapitalization textCapitalization = .none,
  12. TextDirection? textDirection,
  13. bool autofocus = false,
  14. WidgetStatesController? statesController,
  15. bool readOnly = false,
  16. GestureTapCallback? onTap,
  17. TapRegionCallback? onTapOutside,
  18. bool onTapAlwaysCalled = false,
  19. VoidCallback? onEditingComplete,
  20. ValueChanged<String>? onSubmit,
  21. AppPrivateCommandCallback? onAppPrivateCommand,
  22. List<TextInputFormatter>? inputFormatters,
  23. bool enabled = true,
  24. bool? ignorePointers,
  25. bool enableInteractiveSelection = true,
  26. TextSelectionControls? selectionControls,
  27. DragStartBehavior dragStartBehavior = .start,
  28. MouseCursor? mouseCursor,
  29. Iterable<String>? autofillHints = const [AutofillHints.oneTimeCode],
  30. String? restorationId,
  31. bool stylusHandwritingEnabled = true,
  32. bool enableIMEPersonalizedLearning = true,
  33. ContentInsertionConfiguration? contentInsertionConfiguration,
  34. EditableTextContextMenuBuilder? contextMenuBuilder = FTextField.defaultContextMenuBuilder,
  35. bool canRequestFocus = true,
  36. UndoHistoryController? undoController,
  37. FormFieldSetter<String>? onSaved,
  38. VoidCallback? onReset,
  39. FormFieldValidator<String>? validator,
  40. AutovalidateMode autovalidateMode = .disabled,
  41. String? forceErrorText,
  42. Widget errorBuilder(
    1. BuildContext context,
    2. String message
    ) = FFormFieldProperties.defaultErrorBuilder,
  43. Key? formFieldKey,
  44. 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;