copyWith method
copyWith method for changing default style values
Implementation
CodeEntryFieldStyle copyWith({
Color? boxBackgroundColor,
Color? boxBorderColor,
double? boxBorderWidth,
double? cornerRadius,
Color? selectionColor,
TextStyle? textStyle,
}) {
return CodeEntryFieldStyle(
boxBackgroundColor: boxBackgroundColor ?? this.boxBackgroundColor,
boxBorderColor: boxBorderColor ?? this.boxBorderColor,
boxBorderWidth: boxBorderWidth ?? this.boxBorderWidth,
boxCornerRadius: cornerRadius ?? this.boxCornerRadius,
selectionColor: selectionColor ?? this.selectionColor,
textStyle: textStyle ?? this.textStyle,
);
}