register method Null safety
- AutofillClient client
Adds the AutofillClient to this AutofillGroup.
Typically, this is called by TextInputClients that support autofill (for example, EditableTextState) in State.didChangeDependencies, when the input field should be registered to a new AutofillGroup.
See also:
- EditableTextState.didChangeDependencies, where this method is called to update the current AutofillScope when needed.
Implementation
void register(AutofillClient client) {
assert(client != null);
_clients.putIfAbsent(client.autofillId, () => client);
}