autofillClients property Null safety

Iterable<AutofillClient> autofillClients
override

The collection of AutofillClients currently tied to this AutofillScope.

Every AutofillClient in this list must have autofill enabled (i.e. its AutofillClient.textInputConfiguration must have a non-null AutofillConfiguration.)

Implementation

@override
Iterable<AutofillClient> get autofillClients {
  return _clients.values
    .where((AutofillClient client) => client.textInputConfiguration.autofillConfiguration.enabled);
}