ImageParams constructor

const ImageParams({
  1. double? width,
  2. double? height,
  3. double? size,
  4. @JsonKey(toJson: null, fromJson: null, includeFromJson: false, includeToJson: false) BoxFit? fit,
  5. @JsonKey(toJson: null, fromJson: null, includeFromJson: false, includeToJson: false) BorderRadius? borderRadius,
  6. @JsonKey(toJson: null, fromJson: null, includeFromJson: false, includeToJson: false) BoxShape? shape,
  7. @Default(true) bool enableMemoryCache,
  8. String? heroTag,
  9. @Default(false) bool isSelected,
  10. @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;