copyWith method

PlaceholderImageProps copyWith({
  1. PlaceholderSource? source,
  2. String? seed,
  3. PlaceholderSize? size,
  4. int? width,
  5. int? height,
  6. PlaceholderShape? shape,
  7. PlaceholderFit? fit,
  8. String? alt,
  9. String? text,
  10. bool? animated,
  11. bool? grayscale,
  12. int? blur,
  13. String? backgroundColor,
  14. String? textColor,
  15. bool? lazy,
  16. void onTap()?,
  17. String? classes,
})

Implementation

PlaceholderImageProps copyWith({
  PlaceholderSource? source,
  String? seed,
  PlaceholderSize? size,
  int? width,
  int? height,
  PlaceholderShape? shape,
  PlaceholderFit? fit,
  String? alt,
  String? text,
  bool? animated,
  bool? grayscale,
  int? blur,
  String? backgroundColor,
  String? textColor,
  bool? lazy,
  void Function()? onTap,
  String? classes,
}) {
  return PlaceholderImageProps(
    source: source ?? this.source,
    seed: seed ?? this.seed,
    size: size ?? this.size,
    width: width ?? this.width,
    height: height ?? this.height,
    shape: shape ?? this.shape,
    fit: fit ?? this.fit,
    alt: alt ?? this.alt,
    text: text ?? this.text,
    animated: animated ?? this.animated,
    grayscale: grayscale ?? this.grayscale,
    blur: blur ?? this.blur,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textColor: textColor ?? this.textColor,
    lazy: lazy ?? this.lazy,
    onTap: onTap ?? this.onTap,
    classes: classes ?? this.classes,
  );
}