copyWith method

  1. @override
ImageTestSpec copyWith({
  1. AlignmentGeometry? alignment,
  2. AnimatedData? animated,
  3. Rect? centerSlice,
  4. Color? color,
  5. BlendMode? colorBlendMode,
  6. FilterQuality? filterQuality,
  7. BoxFit? fit,
  8. double? height,
  9. ImageRepeat? repeat,
  10. 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,
  );
}