copyWith method
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,
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,
);
}