AntdInputBase<WidgetType> constructor

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

Implementation

const AntdInputBase({
  super.key,
  super.style,
  super.styleBuilder,
  super.disabled,
  super.readOnly,
  super.value,
  super.autoCollect,
  super.onChange,
  super.shouldTriggerChange,
  super.hapticFeedback,
  super.manual,
  this.focusNode,
  this.clearable = true,
  this.onEditingComplete,
  this.onSubmitted,
  this.onClear,
  this.placeholder,
  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 NeverScrollableScrollPhysics(),
  this.clipBehavior = Clip.hardEdge,
  this.onFocus,
});