copyWith method

TextInputConfiguration copyWith(
  1. {int? viewId,
  2. TextInputType? inputType,
  3. bool? readOnly,
  4. bool? obscureText,
  5. bool? autocorrect,
  6. SmartDashesType? smartDashesType,
  7. SmartQuotesType? smartQuotesType,
  8. bool? enableSuggestions,
  9. bool? enableInteractiveSelection,
  10. String? actionLabel,
  11. TextInputAction? inputAction,
  12. Brightness? keyboardAppearance,
  13. TextCapitalization? textCapitalization,
  14. bool? enableIMEPersonalizedLearning,
  15. List<String>? allowedMimeTypes,
  16. AutofillConfiguration? autofillConfiguration,
  17. bool? enableDeltaModel}
)

Creates a copy of this TextInputConfiguration with the given fields replaced with new values.

Implementation

TextInputConfiguration copyWith({
  int? viewId,
  TextInputType? inputType,
  bool? readOnly,
  bool? obscureText,
  bool? autocorrect,
  SmartDashesType? smartDashesType,
  SmartQuotesType? smartQuotesType,
  bool? enableSuggestions,
  bool? enableInteractiveSelection,
  String? actionLabel,
  TextInputAction? inputAction,
  Brightness? keyboardAppearance,
  TextCapitalization? textCapitalization,
  bool? enableIMEPersonalizedLearning,
  List<String>? allowedMimeTypes,
  AutofillConfiguration? autofillConfiguration,
  bool? enableDeltaModel,
}) {
  return TextInputConfiguration(
    viewId: viewId ?? this.viewId,
    inputType: inputType ?? this.inputType,
    readOnly: readOnly ?? this.readOnly,
    obscureText: obscureText ?? this.obscureText,
    autocorrect: autocorrect ?? this.autocorrect,
    smartDashesType: smartDashesType ?? this.smartDashesType,
    smartQuotesType: smartQuotesType ?? this.smartQuotesType,
    enableSuggestions: enableSuggestions ?? this.enableSuggestions,
    enableInteractiveSelection: enableInteractiveSelection ?? this.enableInteractiveSelection,
    inputAction: inputAction ?? this.inputAction,
    textCapitalization: textCapitalization ?? this.textCapitalization,
    keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
    enableIMEPersonalizedLearning: enableIMEPersonalizedLearning?? this.enableIMEPersonalizedLearning,
    allowedMimeTypes: allowedMimeTypes ?? this.allowedMimeTypes,
    autofillConfiguration: autofillConfiguration ?? this.autofillConfiguration,
    enableDeltaModel: enableDeltaModel ?? this.enableDeltaModel,
  );
}