AntdInputBase<WidgetType> constructor

const AntdInputBase<WidgetType>({
  1. Key? key,
  2. AntdInputStyle? style,
  3. AntdStyleBuilder<AntdInputStyle, WidgetType>? styleBuilder,
  4. FocusNode? focusNode,
  5. bool clearable = true,
  6. String? value,
  7. bool disabled = false,
  8. ValueChanged<String?>? onChange,
  9. VoidCallback? onEditingComplete,
  10. ValueChanged<String>? onSubmitted,
  11. VoidCallback? onClear,
  12. Widget? placeholder,
  13. bool readOnly = false,
  14. AntdInputController? controller,
  15. TextAlign textAlign = TextAlign.start,
  16. bool obscureIcon = true,
  17. bool obscureText = false,
  18. bool autocorrect = false,
  19. int? maxLines,
  20. int? minLines,
  21. int? maxLength,
  22. TextInputType? keyboardType = TextInputType.text,
  23. TextInputAction? inputAction,
  24. SelectionChangedCallback? onSelectionChanged,
  25. List<TextInputFormatter>? formatters,
  26. Widget? prefix,
  27. Widget? suffix,
  28. VoidCallback? onTap,
  29. EditableTextContextMenuBuilder? contextMenuBuilder,
  30. UndoHistoryController? undoController,
  31. SpellCheckConfiguration? spellCheckConfiguration,
  32. TextMagnifierConfiguration? magnifierConfiguration,
  33. AppPrivateCommandCallback? onAppPrivateCommand,
  34. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  35. ScrollController? scrollController,
  36. ScrollPhysics? scrollPhysics = const ClampingScrollPhysics(),
  37. Clip clipBehavior = Clip.hardEdge,
  38. AntdOnFocus? onFocus,
})

Implementation

const AntdInputBase({
  super.key,
  super.style,
  super.styleBuilder,
  this.focusNode,
  this.clearable = true,
  this.value,
  this.disabled = false,
  this.onChange,
  this.onEditingComplete,
  this.onSubmitted,
  this.onClear,
  this.placeholder,
  this.readOnly = false,
  this.controller,
  this.textAlign = TextAlign.start,
  this.obscureIcon = true,
  this.obscureText = false,
  this.autocorrect = false,
  this.maxLines,
  this.minLines,
  this.maxLength,
  this.keyboardType = TextInputType.text,
  this.inputAction,
  this.onSelectionChanged,
  this.formatters,
  this.prefix,
  this.suffix,
  this.onTap,
  this.contextMenuBuilder,
  this.undoController,
  this.spellCheckConfiguration,
  this.magnifierConfiguration,
  this.onAppPrivateCommand,
  this.dragStartBehavior = DragStartBehavior.start,
  this.scrollController,
  this.scrollPhysics = const ClampingScrollPhysics(),
  this.clipBehavior = Clip.hardEdge,
  this.onFocus,
});