copyWith method

CustomInputTheme copyWith({
  1. TextStyle? style,
  2. TextStyle? placeholderStyle,
  3. Color? cursorColor,
  4. double? cursorWidth,
  5. double? cursorHeight,
  6. Radius? cursorRadius,
  7. bool? cursorOpacityAnimates,
  8. EdgeInsetsGeometry? padding,
  9. EdgeInsetsGeometry? inputPadding,
  10. AlignmentGeometry? alignment,
  11. AlignmentGeometry? placeholderAlignment,
  12. MainAxisAlignment? mainAxisAlignment,
  13. CrossAxisAlignment? crossAxisAlignment,
  14. double? gap,
  15. double? verticalGap,
  16. BoxConstraints? constraints,
  17. EdgeInsetsGeometry? scrollbarPadding,
  18. BoxDecoration? decoration,
  19. BoxDecoration? focusedDecoration,
  20. BoxDecoration? disabledDecoration,
})

Creates a copy of this theme with the given fields replaced.

Implementation

CustomInputTheme copyWith({
  TextStyle? style,
  TextStyle? placeholderStyle,
  Color? cursorColor,
  double? cursorWidth,
  double? cursorHeight,
  Radius? cursorRadius,
  bool? cursorOpacityAnimates,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? inputPadding,
  AlignmentGeometry? alignment,
  AlignmentGeometry? placeholderAlignment,
  MainAxisAlignment? mainAxisAlignment,
  CrossAxisAlignment? crossAxisAlignment,
  double? gap,
  double? verticalGap,
  BoxConstraints? constraints,
  EdgeInsetsGeometry? scrollbarPadding,
  BoxDecoration? decoration,
  BoxDecoration? focusedDecoration,
  BoxDecoration? disabledDecoration,
}) {
  return CustomInputTheme(
    style: style ?? this.style,
    placeholderStyle: placeholderStyle ?? this.placeholderStyle,
    cursorColor: cursorColor ?? this.cursorColor,
    cursorWidth: cursorWidth ?? this.cursorWidth,
    cursorHeight: cursorHeight ?? this.cursorHeight,
    cursorRadius: cursorRadius ?? this.cursorRadius,
    cursorOpacityAnimates:
        cursorOpacityAnimates ?? this.cursorOpacityAnimates,
    padding: padding ?? this.padding,
    inputPadding: inputPadding ?? this.inputPadding,
    alignment: alignment ?? this.alignment,
    placeholderAlignment: placeholderAlignment ?? this.placeholderAlignment,
    mainAxisAlignment: mainAxisAlignment ?? this.mainAxisAlignment,
    crossAxisAlignment: crossAxisAlignment ?? this.crossAxisAlignment,
    gap: gap ?? this.gap,
    verticalGap: verticalGap ?? this.verticalGap,
    constraints: constraints ?? this.constraints,
    scrollbarPadding: scrollbarPadding ?? this.scrollbarPadding,
    decoration: decoration ?? this.decoration,
    focusedDecoration: focusedDecoration ?? this.focusedDecoration,
    disabledDecoration: disabledDecoration ?? this.disabledDecoration,
  );
}