ImageParams class sealed
- Available extensions
- Annotations
-
- @freezed
Constructors
-
ImageParams.new({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(false) bool clearMemoryCacheWhenDispose, @Default(true) bool gaplessPlayback, @igFreezedJson BlendMode? colorBlendMode, @Default(FilterQuality.medium) FilterQuality filterQuality, 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, @igFreezedJson Key? extendedImageEditorKey, @igFreezedJson ExtendedImageMode? mode}) -
constfactory
-
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
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ImageParams value)?) → TResult? -
Available on ImageParams, provided by the ImageParamsPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ImageParams value)?, {required TResult orElse()}) → TResult -
Available on ImageParams, provided by the ImageParamsPatterns extension
A variant ofmap
that fallback to returningorElse
. -
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 ofwhen
that fallback to anorElse
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
Aswitch
-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 ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited