copyWith method

FocusDecoration copyWith({
  1. Color? color,
  2. DecorationImage? image,
  3. BoxBorder? focusBorder,
  4. BoxBorder? unFocusBorder,
  5. BorderRadiusGeometry? borderRadius,
  6. List<BoxShadow>? boxShadow,
  7. Gradient? gradient,
  8. BlendMode? backgroundBlendMode,
  9. BoxShape? shape,
})

Implementation

FocusDecoration copyWith({
  final Color? color,
  DecorationImage? image,
  BoxBorder? focusBorder,
  BoxBorder? unFocusBorder,
  BorderRadiusGeometry? borderRadius,
  List<BoxShadow>? boxShadow,
  Gradient? gradient,
  BlendMode? backgroundBlendMode,
  BoxShape? shape,
}) {
  return FocusDecoration(
    color: color ?? this.color,
    image: image ?? this.image,
    focusBorder: focusBorder ?? this.focusBorder,
    unFocusBorder: unFocusBorder ?? this.unFocusBorder,
    boxShadow: boxShadow ?? this.boxShadow,
    gradient: gradient ?? this.gradient,
    backgroundBlendMode: backgroundBlendMode ?? this.backgroundBlendMode,
    shape: shape ?? this.shape,
  );
}