ImageParams constructor
const
ImageParams({
- double? width,
- double? height,
- double? size,
- @JsonKey(toJson: null, fromJson: null, includeFromJson: false, includeToJson: false) BoxFit? fit,
- @JsonKey(toJson: null, fromJson: null, includeFromJson: false, includeToJson: false) BorderRadius? borderRadius,
- @JsonKey(toJson: null, fromJson: null, includeFromJson: false, includeToJson: false) BoxShape? shape,
- @Default(true) bool enableMemoryCache,
- String? heroTag,
- @Default(false) bool isSelected,
- @JsonKey(toJson: null, fromJson: null, includeFromJson: false, includeToJson: false) Widget? errorWidget,
Implementation
const factory ImageParams(
{double? width,
double? height,
double? size,
@JsonKey(
toJson: null,
fromJson: null,
includeFromJson: false,
includeToJson: false)
BoxFit? fit,
@JsonKey(
toJson: null,
fromJson: null,
includeFromJson: false,
includeToJson: false)
BorderRadius? borderRadius,
@JsonKey(
toJson: null,
fromJson: null,
includeFromJson: false,
includeToJson: false)
BoxShape? shape,
@Default(true) bool enableMemoryCache,
String? heroTag,
@Default(false) bool isSelected,
@JsonKey(
toJson: null,
fromJson: null,
includeFromJson: false,
includeToJson: false)
Widget? errorWidget}) = _ImageParams;