copyWith method
FormStyle
copyWith({
- double? height,
- double? width,
- BorderRadius? borderRadius,
- Color? cursorColor,
- InputBorder? border,
- InputBorder? disabledBorder,
- InputBorder? errorBorder,
- double? borderWidth,
- TextStyle? textStyle,
- Color? backgroundColor,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? contentPadding,
- Color? color,
- Color? subColor,
- Color? errorColor,
- TextAlign? textAlign,
- Color? borderColor,
- Color? disabledColor,
- Color? disabledBackgroundColor,
- FormAffixStyle? prefix,
- FormAffixStyle? suffix,
- TextAlignVertical? textAlignVertical,
- OutlinedBorder? shape,
- FormInputBorderStyle? borderStyle,
- double? elevation,
Implementation
FormStyle copyWith({
double? height,
double? width,
BorderRadius? borderRadius,
Color? cursorColor,
InputBorder? border,
InputBorder? disabledBorder,
InputBorder? errorBorder,
double? borderWidth,
TextStyle? textStyle,
Color? backgroundColor,
AlignmentGeometry? alignment,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? contentPadding,
Color? color,
Color? subColor,
Color? errorColor,
TextAlign? textAlign,
Color? borderColor,
Color? disabledColor,
Color? disabledBackgroundColor,
FormAffixStyle? prefix,
FormAffixStyle? suffix,
TextAlignVertical? textAlignVertical,
OutlinedBorder? shape,
FormInputBorderStyle? borderStyle,
double? elevation,
}) {
return FormStyle(
height: height ?? this.height,
borderStyle: borderStyle ?? this.borderStyle,
width: width ?? this.width,
alignment: alignment ?? this.alignment,
borderRadius: borderRadius ?? this.borderRadius,
borderWidth: borderWidth ?? this.borderWidth,
cursorColor: cursorColor ?? this.cursorColor,
border: border ?? this.border,
disabledBorder: disabledBorder ?? this.disabledBorder,
errorBorder: errorBorder ?? this.errorBorder,
textStyle: textStyle ?? this.textStyle,
backgroundColor: backgroundColor ?? this.backgroundColor,
padding: padding ?? this.padding,
contentPadding: contentPadding ?? this.contentPadding,
color: color ?? this.color,
subColor: subColor ?? this.subColor,
errorColor: errorColor ?? this.errorColor,
textAlign: textAlign ?? this.textAlign,
textAlignVertical: textAlignVertical ?? this.textAlignVertical,
borderColor: borderColor ?? this.borderColor,
disabledColor: disabledColor ?? this.disabledColor,
disabledBackgroundColor:
disabledBackgroundColor ?? this.disabledBackgroundColor,
prefix: prefix ?? this.prefix,
suffix: suffix ?? this.suffix,
shape: shape ?? this.shape,
elevation: elevation ?? this.elevation,
);
}