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