register method

void register(
  1. 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:

Implementation

void register(AutofillClient client) {
  _clients.putIfAbsent(client.autofillId, () => client);
}