BaseImage.dynamic constructor
BaseImage.dynamic(
- dynamic image, {
- Key? key,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- double? width,
- double? height,
- Color? color,
- Animation<
double> ? opacity, - BlendMode? colorBlendMode,
- BoxFit? fit = BoxFit.cover,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- FilterQuality filterQuality = FilterQuality.low,
- BoxBorder? border,
- BoxShape? shape = BoxShape.rectangle,
- BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(2)),
- Clip clipBehavior = Clip.antiAlias,
- bool enableLoadState = true,
- BeforePaintImage? beforePaintImage,
- AfterPaintImage? afterPaintImage,
- ExtendedImageMode mode = ExtendedImageMode.none,
- bool enableMemoryCache = true,
- bool clearMemoryCacheIfFailed = true,
- DoubleTap? onDoubleTap,
- InitGestureConfigHandler? initGestureConfigHandler,
- bool enableSlideOutPage = false,
- BoxConstraints? constraints,
- Key? extendedImageEditorKey,
- InitEditorConfigHandler? initEditorConfigHandler,
- HeroBuilderForSlidingPage? heroBuilderForSlidingPage,
- bool clearMemoryCacheWhenDispose = false,
- Key? extendedImageGestureKey,
- bool isAntiAlias = false,
- bool handleLoadingProgress = false,
- EdgeInsets layoutInsets = EdgeInsets.zero,
- Widget? failed,
- Widget? loading,
- int? cacheWidth,
- int? cacheHeight,
- double? compressionRatio,
- int? maxBytes,
- bool cacheRawData = false,
- String? imageCacheName,
- double scale = 1.0,
- Map<
String, String> ? headers, - bool cache = true,
- int retries = 3,
- Duration? timeLimit,
- Duration timeRetry = const Duration(milliseconds: 100),
- CancellationToken? cancelToken,
- String? cacheKey,
- bool printError = true,
- Duration? cacheMaxAge,
- AssetBundle? bundle,
- String? package,
Implementation
BaseImage.dynamic(
dynamic image, {
super.key,
super.semanticLabel,
super.excludeFromSemantics = false,
super.width,
super.height,
super.color,
super.opacity,
super.colorBlendMode,
super.fit = BoxFit.cover,
super.alignment = Alignment.center,
super.repeat = ImageRepeat.noRepeat,
super.centerSlice,
super.matchTextDirection = false,
super.gaplessPlayback = false,
super.filterQuality = FilterQuality.low,
super.border,
super.shape = BoxShape.rectangle,
super.borderRadius = const BorderRadius.all(Radius.circular(2)),
super.clipBehavior = Clip.antiAlias,
super.enableLoadState = true,
super.beforePaintImage,
super.afterPaintImage,
super.mode = ExtendedImageMode.none,
super.enableMemoryCache = true,
super.clearMemoryCacheIfFailed = true,
super.onDoubleTap,
super.initGestureConfigHandler,
super.enableSlideOutPage = false,
super.constraints,
super.extendedImageEditorKey,
super.initEditorConfigHandler,
super.heroBuilderForSlidingPage,
super.clearMemoryCacheWhenDispose = false,
super.extendedImageGestureKey,
super.isAntiAlias = false,
super.handleLoadingProgress = false,
super.layoutInsets = EdgeInsets.zero,
Widget? failed,
Widget? loading,
int? cacheWidth,
int? cacheHeight,
double? compressionRatio,
int? maxBytes,
bool cacheRawData = false,
String? imageCacheName,
double scale = 1.0,
/// [ExtendedNetworkImageProvider]
Map<String, String>? headers,
bool cache = true,
int retries = 3,
Duration? timeLimit,
Duration timeRetry = const Duration(milliseconds: 100),
CancellationToken? cancelToken,
String? cacheKey,
bool printError = true,
Duration? cacheMaxAge,
/// [ExtendedAssetImageProvider]
AssetBundle? bundle,
String? package,
}) : super(
image: BaseResizeImage.buildImageProvider(image,
cacheWidth: cacheWidth,
cacheHeight: cacheHeight,
maxBytes: maxBytes,
compressionRatio: compressionRatio,
cacheRawData: cacheRawData,
imageCacheName: imageCacheName,
scale: scale,
headers: headers,
cache: cache,
cancelToken: cancelToken,
retries: retries,
timeRetry: timeRetry,
timeLimit: timeLimit,
cacheKey: cacheKey,
printError: printError,
cacheMaxAge: cacheMaxAge,
bundle: bundle,
package: package),
loadStateChanged:
buildLoadStateChanged(failed: failed, loading: loading));