SmartDebouncerTextField class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SmartDebouncerTextField
Constructors
-
SmartDebouncerTextField.new({Key? key, required Duration delay, bool leading = false, bool trailing = true, Duration? maxWait, ValueChanged<
String> ? onChangedDebounced, ValueChanged<String> ? onChanged, TextEditingController? controller, FocusNode? focusNode, InputDecoration? decoration, TextInputType? keyboardType, TextInputAction? textInputAction, TextStyle? style, TextAlign textAlign = TextAlign.start, bool autofocus = false, bool obscureText = false, bool? enabled, int? minLines, int? maxLines = 1, ValueChanged<String> ? onSubmitted, TextCapitalization textCapitalization = TextCapitalization.none})
Properties
- autofocus → bool
-
Whether the field autofocuses.
final
- controller → TextEditingController?
-
Controller for the underlying TextField.
final
- decoration → InputDecoration?
-
Decoration for the text field.
final
- delay → Duration
-
Debounce duration before firing onChangedDebounced.
final
- enabled → bool?
-
Whether the field is enabled.
final
- focusNode → FocusNode?
-
Focus node for the underlying TextField.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType?
-
Keyboard type for the field.
final
- leading → bool
-
Whether to invoke the debounced callback immediately on the leading edge.
final
- maxLines → int?
-
Maximum lines for the field.
final
- maxWait → Duration?
-
Ensures a callback at least every maxWait duration if provided.
final
- minLines → int?
-
Minimum lines for the field.
final
- obscureText → bool
-
Whether the field obscures text.
final
-
onChanged
→ ValueChanged<
String> ? -
Immediate change callback forwarded to the underlying TextField.
final
-
onChangedDebounced
→ ValueChanged<
String> ? -
Debounced change callback triggered once the user pauses typing.
final
-
onSubmitted
→ ValueChanged<
String> ? -
Callback when the user submits the field.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TextStyle?
-
Style for the entered text.
final
- textAlign → TextAlign
-
Alignment for the text.
final
- textCapitalization → TextCapitalization
-
Text capitalization strategy.
final
- textInputAction → TextInputAction?
-
Text input action.
final
- trailing → bool
-
Whether to invoke the debounced callback on the trailing edge.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SmartDebouncerTextField> -
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