copyWith method Null safety
- {AssetBundle? bundle,
- double? devicePixelRatio,
- Locale? locale,
- TextDirection? textDirection,
- Size? size,
- TargetPlatform? platform}
Creates an object holding the configuration information for an ImageProvider.
All the arguments are optional. Configuration information is merely advisory and best-effort.
Implementation
ImageConfiguration copyWith({
AssetBundle? bundle,
double? devicePixelRatio,
Locale? locale,
TextDirection? textDirection,
Size? size,
TargetPlatform? platform,
}) {
return ImageConfiguration(
bundle: bundle ?? this.bundle,
devicePixelRatio: devicePixelRatio ?? this.devicePixelRatio,
locale: locale ?? this.locale,
textDirection: textDirection ?? this.textDirection,
size: size ?? this.size,
platform: platform ?? this.platform,
);
}