textInputConfiguration property

  1. @override
TextInputConfiguration get textInputConfiguration
override

The TextInputConfiguration that describes this AutofillClient.

In order to participate in autofill, its TextInputConfiguration.autofillConfiguration must not be null.

Implementation

@override
TextInputConfiguration get textInputConfiguration {
  var widget = this.widget;
  final List<String>? autofillHints =
      widget.autofillHints?.toList(growable: false);
  final AutofillConfiguration autofillConfiguration = autofillHints != null
      ? AutofillConfiguration(
          uniqueIdentifier: autofillId,
          autofillHints: autofillHints,
          currentEditingValue: effectiveController.value,
          hintText: widget.hintText,
        )
      : AutofillConfiguration.disabled;

  return _editableText.textInputConfiguration.copyWith(
    autofillConfiguration: autofillConfiguration,
  );
}