copyWith method

InputDecorationTheme copyWith ({TextStyle labelStyle, TextStyle helperStyle, TextStyle hintStyle, TextStyle errorStyle, int errorMaxLines, bool hasFloatingPlaceholder, bool isDense, EdgeInsetsGeometry contentPadding, bool isCollapsed, TextStyle prefixStyle, TextStyle suffixStyle, TextStyle counterStyle, bool filled, Color fillColor, Color focusColor, Color hoverColor, InputBorder errorBorder, InputBorder focusedBorder, InputBorder focusedErrorBorder, InputBorder disabledBorder, InputBorder enabledBorder, InputBorder border, bool alignLabelWithHint })

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

Implementation

InputDecorationTheme copyWith({
  TextStyle labelStyle,
  TextStyle helperStyle,
  TextStyle hintStyle,
  TextStyle errorStyle,
  int errorMaxLines,
  bool hasFloatingPlaceholder,
  bool isDense,
  EdgeInsetsGeometry contentPadding,
  bool isCollapsed,
  TextStyle prefixStyle,
  TextStyle suffixStyle,
  TextStyle counterStyle,
  bool filled,
  Color fillColor,
  Color focusColor,
  Color hoverColor,
  InputBorder errorBorder,
  InputBorder focusedBorder,
  InputBorder focusedErrorBorder,
  InputBorder disabledBorder,
  InputBorder enabledBorder,
  InputBorder border,
  bool alignLabelWithHint,
}) {
  return InputDecorationTheme(
    labelStyle: labelStyle ?? this.labelStyle,
    helperStyle: helperStyle ?? this.helperStyle,
    hintStyle: hintStyle ?? this.hintStyle,
    errorStyle: errorStyle ?? this.errorStyle,
    errorMaxLines: errorMaxLines ?? this.errorMaxLines,
    hasFloatingPlaceholder: hasFloatingPlaceholder ?? this.hasFloatingPlaceholder,
    isDense: isDense ?? this.isDense,
    contentPadding: contentPadding ?? this.contentPadding,
    isCollapsed: isCollapsed ?? this.isCollapsed,
    prefixStyle: prefixStyle ?? this.prefixStyle,
    suffixStyle: suffixStyle ?? this.suffixStyle,
    counterStyle: counterStyle ?? this.counterStyle,
    filled: filled ?? this.filled,
    fillColor: fillColor ?? this.fillColor,
    focusColor: focusColor ?? this.focusColor,
    hoverColor: hoverColor ?? this.hoverColor,
    errorBorder: errorBorder ?? this.errorBorder,
    focusedBorder: focusedBorder ?? this.focusedBorder,
    focusedErrorBorder: focusedErrorBorder ?? this.focusedErrorBorder,
    disabledBorder: disabledBorder ?? this.disabledBorder,
    enabledBorder: enabledBorder ?? this.enabledBorder,
    border: border ?? this.border,
    alignLabelWithHint: alignLabelWithHint ?? this.alignLabelWithHint,
  );
}