ImageParams class sealed

Available extensions
Annotations
  • @freezed

Constructors

ImageParams({double? width, double? height, double? size, @igFreezedJson BoxFit? fit, @igFreezedJson BorderRadius? borderRadius, @igFreezedJson BoxShape? shape, @Default.new(true) bool enableMemoryCache, String? heroTag, @Default.new(false) bool isSelected, @igFreezedJson Widget? errorWidget, @igFreezedJson VoidCallback? onTap, @igFreezedJson Color? color, @Default.new(true) bool clearMemoryCacheIfFailed, @Default.new(false) bool clearMemoryCacheWhenDispose, @Default.new(true) bool gaplessPlayback, @igFreezedJson BlendMode? colorBlendMode, @Default.new(FilterQuality.medium) FilterQuality filterQuality, double? scale, @Default.new({}) Map<String, String> headers, @Default.new(true) bool cache, @Default.new(3) int retries, @igFreezedJson Duration? timeLimit, @igFreezedJson @Default.new(Duration(seconds: 3)) Duration timeRetry, @igFreezedJson CancellationToken? cancelToken, String? cacheKey, @Default.new(false) bool printError, @Default.new(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, @igFreezedJson Key? extendedImageEditorKey, @igFreezedJson ExtendedImageMode? mode})
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
clearMemoryCacheWhenDispose → 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
extendedImageEditorKey → Key?
no setterinherited
filterQuality → FilterQuality
no setterinherited
fit → BoxFit?
no setterinherited
gaplessPlayback → bool
no setterinherited
getHeight → double?

Available on ImageParams, provided by the ImageParamsEx extension

no setter
getWidth → double?

Available on ImageParams, provided by the ImageParamsEx extension

no setter
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
mode → ExtendedImageMode?
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

map<TResult extends Object?>(TResult $default(_ImageParams value)) → TResult

Available on ImageParams, provided by the ImageParamsPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ImageParams value)?) → TResult?

Available on ImageParams, provided by the ImageParamsPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ImageParams value)?, {required TResult orElse()}) → TResult

Available on ImageParams, provided by the ImageParamsPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(double? width, double? height, double? size, BoxFit? fit, BorderRadius? borderRadius, BoxShape? shape, bool enableMemoryCache, String? heroTag, bool isSelected, Widget? errorWidget, VoidCallback? onTap, Color? color, bool clearMemoryCacheIfFailed, bool clearMemoryCacheWhenDispose, bool gaplessPlayback, BlendMode? colorBlendMode, FilterQuality filterQuality, double? scale, Map<String, String> headers, bool cache, int retries, Duration? timeLimit, Duration timeRetry, CancellationToken? cancelToken, String? cacheKey, bool printError, bool cacheRawData, String? imageCacheName, Duration? cacheMaxAge, int? cacheWidth, int? cacheHeight, double? compressionRatio, int? maxBytes, String? package, AssetBundle? bundle, CustomCompletedWidget? customCompletedWidget, Widget? customLoadingWidget, InitEditorConfigHandler? initEditorConfigHandler, Key? extendedImageEditorKey, ExtendedImageMode? mode)?, {required TResult orElse()}) → TResult

Available on ImageParams, provided by the ImageParamsPatterns extension

A variant of when that fallback to an orElse callback.
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
when<TResult extends Object?>(TResult $default(double? width, double? height, double? size, BoxFit? fit, BorderRadius? borderRadius, BoxShape? shape, bool enableMemoryCache, String? heroTag, bool isSelected, Widget? errorWidget, VoidCallback? onTap, Color? color, bool clearMemoryCacheIfFailed, bool clearMemoryCacheWhenDispose, bool gaplessPlayback, BlendMode? colorBlendMode, FilterQuality filterQuality, double? scale, Map<String, String> headers, bool cache, int retries, Duration? timeLimit, Duration timeRetry, CancellationToken? cancelToken, String? cacheKey, bool printError, bool cacheRawData, String? imageCacheName, Duration? cacheMaxAge, int? cacheWidth, int? cacheHeight, double? compressionRatio, int? maxBytes, String? package, AssetBundle? bundle, CustomCompletedWidget? customCompletedWidget, Widget? customLoadingWidget, InitEditorConfigHandler? initEditorConfigHandler, Key? extendedImageEditorKey, ExtendedImageMode? mode)) → TResult

Available on ImageParams, provided by the ImageParamsPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(double? width, double? height, double? size, BoxFit? fit, BorderRadius? borderRadius, BoxShape? shape, bool enableMemoryCache, String? heroTag, bool isSelected, Widget? errorWidget, VoidCallback? onTap, Color? color, bool clearMemoryCacheIfFailed, bool clearMemoryCacheWhenDispose, bool gaplessPlayback, BlendMode? colorBlendMode, FilterQuality filterQuality, double? scale, Map<String, String> headers, bool cache, int retries, Duration? timeLimit, Duration timeRetry, CancellationToken? cancelToken, String? cacheKey, bool printError, bool cacheRawData, String? imageCacheName, Duration? cacheMaxAge, int? cacheWidth, int? cacheHeight, double? compressionRatio, int? maxBytes, String? package, AssetBundle? bundle, CustomCompletedWidget? customCompletedWidget, Widget? customLoadingWidget, InitEditorConfigHandler? initEditorConfigHandler, Key? extendedImageEditorKey, ExtendedImageMode? mode)?) → TResult?

Available on ImageParams, provided by the ImageParamsPatterns extension

A variant of when that fallback to returning null

Operators

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