ImageParams constructor
const
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,
Implementation
const factory 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,
//---net
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
}) = _ImageParams;