copyWith method

ImageStyle copyWith({
  1. double? opacity,
  2. String? filter,
  3. ObjectFit? fit,
  4. String? title,
  5. ImageDecoding? decoding,
})

Implementation

ImageStyle copyWith({
  double? opacity,
  String? filter,
  ObjectFit? fit,
  String? title,
  ImageDecoding? decoding,
}) {
  return ImageStyle(
    opacity: opacity ?? this.opacity,
    filter: filter ?? this.filter,
    fit: fit ?? this.fit,
    title: title ?? this.title,
    decoding: decoding ?? this.decoding,
  );
}