SuperTextFieldContext class
Collection of core artifacts used to interact with, and edit, a text field.
Constructors
- SuperTextFieldContext.new({required BuildContext textFieldBuildContext, required FocusNode focusNode, required AttributedTextEditingController controller, required SuperTextFieldLayoutResolver getTextLayout, required TextFieldScroller scroller})
Properties
- controller → AttributedTextEditingController
-
Controller that owns the text content, selection, composing region and any
other text-editing state for the associated text field.
final
- focusNode → FocusNode
-
The FocusNode associated with the text field.
final
- getTextLayout → SuperTextFieldLayoutResolver
-
Returns a
Function
, which, when invoked, returns a reference to the text field'sProseTextLayout
, which can be used to query the visual bounds of text.final - hashCode → int
-
The hash code for this object.
no setterinherited
- imeController → ImeAttributedTextEditingController?
-
The controller, cast as an ImeAttributedTextEditingController, or
null
if controller is not an ImeAttributedTextEditingController.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scroller → TextFieldScroller
-
Controller to query and change the scroll offset within the associated
text field.
final
- textFieldBuildContext → BuildContext
-
A BuildContext that's bound to the text field.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited