copyWith method

dynamic copyWith ({InputDecoration decoration, TextStyle style, TextEditingController controller, ValueChanged<T> onChanged, ValueChanged<T> onSubmitted, bool obscureText bool maxLengthEnforced int maxLength, int maxLines, int minLines, bool autocorrect List<TextInputFormatter> inputFormatters, bool autofocus TextInputType keyboardType, bool enabled TextAlign textAlign, FocusNode focusNode, Color cursorColor, Radius cursorRadius, double cursorWidth, Brightness keyboardAppearance, VoidCallback onEditingComplete, GestureTapCallback onTap, EdgeInsets scrollPadding, TextCapitalization textCapitalization, TextDirection textDirection, TextInputAction textInputAction, bool enableInteractiveSelection })

Copies the TextFieldConfiguration and only changes the specified properties

Implementation

copyWith(
    {InputDecoration decoration,
    TextStyle style,
    TextEditingController controller,
    ValueChanged<T> onChanged,
    ValueChanged<T> onSubmitted,
    bool obscureText,
    bool maxLengthEnforced,
    int maxLength,
    int maxLines,
    int minLines,
    bool autocorrect,
    List<TextInputFormatter> inputFormatters,
    bool autofocus,
    TextInputType keyboardType,
    bool enabled,
    TextAlign textAlign,
    FocusNode focusNode,
    Color cursorColor,
    Radius cursorRadius,
    double cursorWidth,
    Brightness keyboardAppearance,
    VoidCallback onEditingComplete,
    GestureTapCallback onTap,
    EdgeInsets scrollPadding,
    TextCapitalization textCapitalization,
    TextDirection textDirection,
    TextInputAction textInputAction,
    bool enableInteractiveSelection}) {
  return TextFieldConfiguration(
    decoration: decoration ?? this.decoration,
    style: style ?? this.style,
    controller: controller ?? this.controller,
    onChanged: onChanged ?? this.onChanged,
    onSubmitted: onSubmitted ?? this.onSubmitted,
    obscureText: obscureText ?? this.obscureText,
    maxLengthEnforced: maxLengthEnforced ?? this.maxLengthEnforced,
    maxLength: maxLength ?? this.maxLength,
    maxLines: maxLines ?? this.maxLines,
    minLines: minLines ?? this.minLines,
    autocorrect: autocorrect ?? this.autocorrect,
    inputFormatters: inputFormatters ?? this.inputFormatters,
    autofocus: autofocus ?? this.autofocus,
    keyboardType: keyboardType ?? this.keyboardType,
    enabled: enabled ?? this.enabled,
    textAlign: textAlign ?? this.textAlign,
    focusNode: focusNode ?? this.focusNode,
    cursorColor: cursorColor ?? this.cursorColor,
    cursorRadius: cursorRadius ?? this.cursorRadius,
    cursorWidth: cursorWidth ?? this.cursorWidth,
    keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
    onEditingComplete: onEditingComplete ?? this.onEditingComplete,
    onTap: onTap ?? this.onTap,
    scrollPadding: scrollPadding ?? this.scrollPadding,
    textCapitalization: textCapitalization ?? this.textCapitalization,
    textInputAction: textInputAction ?? this.textInputAction,
    textDirection: textDirection ?? this.textDirection,
    enableInteractiveSelection:
        enableInteractiveSelection ?? this.enableInteractiveSelection,
  );
}