copyWith method

CodeEntryFieldStyle copyWith({
  1. Color? boxBackgroundColor,
  2. Color? boxBorderColor,
  3. double? boxBorderWidth,
  4. double? cornerRadius,
  5. Color? selectionColor,
  6. TextStyle? textStyle,
})

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