ImageParams class

Available extensions
Annotations
  • @freezed

Constructors

ImageParams({double? width, double? height, double? size, @igFreezedJson BoxFit? fit, @igFreezedJson BorderRadius? borderRadius, @igFreezedJson BoxShape? shape, @Default(true) bool enableMemoryCache, String? heroTag, @Default(false) bool isSelected, @igFreezedJson Widget? errorWidget, @igFreezedJson VoidCallback? onTap, @igFreezedJson Color? color, @Default(true) bool clearMemoryCacheIfFailed, @Default(true) bool gaplessPlayback, @igFreezedJson BlendMode? colorBlendMode, double? scale, @Default({}) Map<String, String> headers, @Default(true) bool cache, @Default(3) int retries, @igFreezedJson Duration? timeLimit, @igFreezedJson @Default(Duration(seconds: 3)) Duration timeRetry, @igFreezedJson CancellationToken? cancelToken, String? cacheKey, @Default(false) bool printError, @Default(true) bool cacheRawData, String? imageCacheName, @igFreezedJson Duration? cacheMaxAge, int? cacheWidth, int? cacheHeight, double? compressionRatio, int? maxBytes, String? package, @igFreezedJson AssetBundle? bundle, @Doc(message: '自定义完成小部件') @igFreezedJson CustomCompletedWidget? customCompletedWidget, @igFreezedJson Widget? customLoadingWidget, @igFreezedJson InitEditorConfigHandler? initEditorConfigHandler})
const
factory
ImageParams.fromJson(Map<String, dynamic> json)
factory

Properties

borderRadius BorderRadius?
no setterinherited
bundle AssetBundle?
no setterinherited
cache bool
no setterinherited
cacheHeight int?
no setterinherited
cacheKey String?
no setterinherited
cacheMaxAge Duration?
no setterinherited
cacheRawData bool
no setterinherited
cacheWidth int?
no setterinherited
cancelToken → CancellationToken?
no setterinherited
clearMemoryCacheIfFailed bool
no setterinherited
color Color?
no setterinherited
colorBlendMode BlendMode?
no setterinherited
compressionRatio double?
no setterinherited
copyWith → $ImageParamsCopyWith<ImageParams>
Create a copy of ImageParams with the given fields replaced by the non-null parameter values.
no setterinherited
customCompletedWidget CustomCompletedWidget?
no setterinherited
customLoadingWidget Widget?
no setterinherited
enableMemoryCache bool
no setterinherited
errorWidget Widget?
no setterinherited
fit BoxFit?
no setterinherited
gaplessPlayback bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
no setterinherited
height double?
no setterinherited
heroTag String?
no setterinherited
imageCacheName String?
no setterinherited
initEditorConfigHandler → InitEditorConfigHandler?
no setterinherited
isSelected bool
no setterinherited
maxBytes int?
no setterinherited
onTap VoidCallback?
no setterinherited
package String?
no setterinherited
printError bool
no setterinherited
retries int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double?
no setterinherited
shape BoxShape?
no setterinherited
size double?
no setterinherited
timeLimit Duration?
no setterinherited
timeRetry Duration
no setterinherited
width double?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ImageParams to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited