copyWith method
ImageStyle
copyWith({
- double? opacity,
- String? filter,
- ObjectFit? fit,
- String? title,
- ImageDecoding? decoding,
Returns a new ImageStyle object with modified properties.
Only the specified parameters will override the current values.
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,
);
}