copyWith method
ImageTestSpec
copyWith({
- AlignmentGeometry? alignment,
- AnimatedData? animated,
- Rect? centerSlice,
- Color? color,
- BlendMode? colorBlendMode,
- FilterQuality? filterQuality,
- BoxFit? fit,
- double? height,
- ImageRepeat? repeat,
- double? width,
override
Creates a copy of this ImageTestSpec but with the given fields replaced with the new values.
Implementation
@override
ImageTestSpec copyWith({
AlignmentGeometry? alignment,
AnimatedData? animated,
Rect? centerSlice,
Color? color,
BlendMode? colorBlendMode,
FilterQuality? filterQuality,
BoxFit? fit,
double? height,
ImageRepeat? repeat,
double? width,
}) {
return ImageTestSpec(
alignment: alignment ?? this.alignment,
animated: animated ?? this.animated,
centerSlice: centerSlice ?? this.centerSlice,
color: color ?? this.color,
colorBlendMode: colorBlendMode ?? this.colorBlendMode,
filterQuality: filterQuality ?? this.filterQuality,
fit: fit ?? this.fit,
height: height ?? this.height,
repeat: repeat ?? this.repeat,
width: width ?? this.width,
);
}