toTextInputConfiguration method
Converts this configuration to a TextInputConfiguration that can be used to attach to the IME.
The viewId is required do determine the view that the text input belongs to. You can call
View.of(context).viewId to get the current view's ID.
Implementation
TextInputConfiguration toTextInputConfiguration({
required int viewId,
}) {
return TextInputConfiguration(
viewId: viewId,
enableDeltaModel: true,
inputType: TextInputType.multiline,
textCapitalization: TextCapitalization.sentences,
autocorrect: enableAutocorrect,
enableSuggestions: enableSuggestions,
inputAction: keyboardActionButton,
keyboardAppearance: keyboardBrightness,
);
}