TextInputConnection class Null safety

An interface for interacting with a text input control.

See also:

Properties

attached bool
Whether this connection is currently interacting with the text input control.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scribbleInProgress bool
Whether there is currently a Scribble interaction in progress.
read-only

Methods

close() → void
Stop interacting with the text input control.
connectionClosedReceived() → void
Platform sent a notification informing the connection is closed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
requestAutofill() → void
Requests the system autofill UI to appear.
setCaretRect(Rect rect) → void
Sends the coordinates of caret rect. This is used on macOS for positioning the accent selection menu.
setComposingRect(Rect rect) → void
Send the smallest rect that covers the text in the client that's currently being composed.
setEditableSizeAndTransform(Size editableBoxSize, Matrix4 transform) → void
Send the size and transform of the editable text to engine.
setEditingState(TextEditingValue value) → void
Requests that the text input control change its internal state to match the given state.
setSelectionRects(List<SelectionRect> selectionRects) → void
Send the bounding boxes of the current selected glyphs in the client to the platform's text input plugin.
setStyle({required String? fontFamily, required double? fontSize, required FontWeight? fontWeight, required TextDirection textDirection, required TextAlign textAlign}) → void
Send text styling information.
show() → void
Requests that the text input control become visible.
toString() String
A string representation of this object.
inherited
updateConfig(TextInputConfiguration configuration) → void
Requests that the text input control update itself according to the new TextInputConfiguration.

Operators

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

Static Methods

debugResetId({int to = 1}) → void
Resets the internal ID counter for testing purposes.
visibleForTesting">@visibleForTesting