AutofillScope class Null safety
An ordered group within which AutofillClients are logically connected.
AutofillClients within the same AutofillScope are isolated from other input fields during autofill. That is, when an autofillable TextInputClient gains focus, only the AutofillClients within the same AutofillScope will be visible to the autofill service, in the same order as they appear in AutofillScope.autofillClients.
AutofillScope also allows TextInput to redirect autofill values from the platform to the AutofillClient with the given identifier, by calling AutofillScope.getAutofillClient.
An AutofillClient that's not tied to any AutofillScope will only participate in autofill if the autofill is directly triggered by its own TextInputClient.
- Implementers
Constructors
Properties
-
autofillClients
→ Iterable<
AutofillClient> -
The collection of
AutofillClient
s currently tied to this AutofillScope.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
Methods
-
attach(
TextInputClient trigger, TextInputConfiguration configuration) → TextInputConnection - Allows a TextInputClient to attach to this scope. This method should be called in lieu of TextInput.attach, when the TextInputClient wishes to participate in autofill.
-
getAutofillClient(
String autofillId) → AutofillClient? -
Gets the AutofillScope associated with the given
autofillId
, in this AutofillScope. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited