KInput class

Inheritance

Constructors

KInput.new({Key? key, bool? error = false, TextEditingController? controller, FocusNode? focusNode, TextInputType? keyboardType, TextInputAction? textInputAction, TextCapitalization textCapitalization = TextCapitalization.none, TextAlign textAlign = TextAlign.start, bool autofocus = false, String obscuringCharacter = '•', bool obscureText = false, bool autocorrect = true, bool enableSuggestions = true, bool expands = false, bool readOnly = false, int? maxLength, void onChanged(String)?, void onEditingComplete()?, void onSubmitted(String)?, void onAppPrivateCommand(String, Map<String, dynamic>)?, List<TextInputFormatter>? inputFormatters, Brightness? keyboardAppearance, DragStartBehavior dragStartBehavior = DragStartBehavior.start, bool? enableInteractiveSelection, TextSelectionControls? selectionControls, void onTap()?, void onTapOutside(PointerDownEvent)?, ScrollController? scrollController, ScrollPhysics? scrollPhysics, String? restorationId, ControlSize size = ControlSize.regular, String? placeholder, dynamic onDebounce(String)?, Duration debounceDuration = const Duration(milliseconds: 300), Widget? prepend, Widget? prefix, Widget? prefixIcon, String? prefixText, String? prefixPlaceholder, String? suffixPlaceholder, String? suffixText, Widget? suffixIcon, Widget? suffix, Widget? append, bool clearable = false, bool togglePassword = false, bool? success, bool? warning, bool? disabled, bool filled = false, Color? filledColor})
const

Properties

append Widget?
final
autocorrect bool
final
autofocus bool
final
clearable bool
final
controller TextEditingController?
final
debounceDuration Duration
final
disabled bool?
final
dragStartBehavior DragStartBehavior
final
enableInteractiveSelection bool?
final
enableSuggestions bool
final
error bool?
final
expands bool
final
filled bool
final
filledColor Color?
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
inputFormatters List<TextInputFormatter>?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardAppearance Brightness?
final
keyboardType TextInputType?
final
maxLength int?
final
obscureText bool
final
obscuringCharacter String
final
onAppPrivateCommand → void Function(String, Map<String, dynamic>)?
final
onChanged → void Function(String)?
final
onDebounce → dynamic Function(String)?
final
onEditingComplete → void Function()?
final
onSubmitted → void Function(String)?
final
onTap → void Function()?
final
onTapOutside → void Function(PointerDownEvent)?
final
placeholder String?
final
prefix Widget?
final
prefixIcon Widget?
final
prefixPlaceholder String?
final
prefixText String?
final
prepend Widget?
final
readOnly bool
final
restorationId String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
final
scrollPhysics ScrollPhysics?
final
selectionControls TextSelectionControls?
final
size ControlSize
final
success bool?
final
suffix Widget?
final
suffixIcon Widget?
final
suffixPlaceholder String?
final
suffixText String?
final
textAlign TextAlign
final
textCapitalization TextCapitalization
final
textInputAction TextInputAction?
final
togglePassword bool
final
warning bool?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<KInput>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited