copyWith method

OtpDecoration copyWith({
  1. Color? borderColor,
  2. Color? focusBorderColor,
  3. Color? successBorderColor,
  4. Color? errorBorderColor,
  5. double? borderWidth,
  6. double? focusBorderWidth,
  7. double? borderRadius,
  8. Color? boxColor,
  9. Color? focusedBoxColor,
  10. List<BoxShadow>? boxShadow,
  11. List<BoxShadow>? focusedBoxShadow,
})

Implementation

OtpDecoration copyWith({
  Color? borderColor,
  Color? focusBorderColor,
  Color? successBorderColor,
  Color? errorBorderColor,
  double? borderWidth,
  double? focusBorderWidth,
  double? borderRadius,
  Color? boxColor,
  Color? focusedBoxColor,
  List<BoxShadow>? boxShadow,
  List<BoxShadow>? focusedBoxShadow,
}) {
  return OtpDecoration(
    borderColor: borderColor ?? this.borderColor,
    focusBorderColor: focusBorderColor ?? this.focusBorderColor,
    successBorderColor: successBorderColor ?? this.successBorderColor,
    errorBorderColor: errorBorderColor ?? this.errorBorderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    focusBorderWidth: focusBorderWidth ?? this.focusBorderWidth,
    borderRadius: borderRadius ?? this.borderRadius,
    boxColor: boxColor ?? this.boxColor,
    focusedBoxColor: focusedBoxColor ?? this.focusedBoxColor,
    boxShadow: boxShadow ?? this.boxShadow,
    focusedBoxShadow: focusedBoxShadow ?? this.focusedBoxShadow,
  );
}