copyWith method
FocusDecoration
copyWith({
- Color? color,
- DecorationImage? image,
- BoxBorder? focusBorder,
- BoxBorder? unFocusBorder,
- BorderRadiusGeometry? borderRadius,
- List<
BoxShadow> ? boxShadow, - Gradient? gradient,
- BlendMode? backgroundBlendMode,
- 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,
);
}