copyWith method

BorderScheme copyWith({
  1. Color? borderColor,
  2. Dim? borderWidth,
  3. Dim? fieldHoverBorderWidth,
  4. Dim? focusBorderWidth,
  5. Dim? errorBorderWidth,
})

Implementation

BorderScheme copyWith({
  Color? borderColor,
  Dim? borderWidth,
  Dim? fieldHoverBorderWidth,
  Dim? focusBorderWidth,
  Dim? errorBorderWidth,
}) {
  return BorderScheme(
    borderColor: borderColor ?? this.borderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    fieldHoverBorderWidth:
        fieldHoverBorderWidth ?? this.fieldHoverBorderWidth,
    focusBorderWidth: focusBorderWidth ?? this.focusBorderWidth,
    errorBorderWidth: errorBorderWidth ?? this.errorBorderWidth,
  );
}