copyWith method

FormStyle copyWith({
  1. double? height,
  2. double? width,
  3. BorderRadius? borderRadius,
  4. Color? cursorColor,
  5. InputBorder? border,
  6. InputBorder? disabledBorder,
  7. InputBorder? errorBorder,
  8. double? borderWidth,
  9. TextStyle? textStyle,
  10. Color? backgroundColor,
  11. AlignmentGeometry? alignment,
  12. EdgeInsetsGeometry? padding,
  13. EdgeInsetsGeometry? contentPadding,
  14. Color? color,
  15. Color? subColor,
  16. Color? errorColor,
  17. TextAlign? textAlign,
  18. Color? borderColor,
  19. Color? disabledColor,
  20. Color? disabledBackgroundColor,
  21. FormAffixStyle? prefix,
  22. FormAffixStyle? suffix,
  23. TextAlignVertical? textAlignVertical,
  24. OutlinedBorder? shape,
  25. FormInputBorderStyle? borderStyle,
  26. double? elevation,
})

Create another FormStyle, changing the parameters.

パラメーターを変更しながら別のFormStyleを作成します。

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