FFImage constructor
FFImage({
- String? legacyPath,
- FFImage_FFImageType? type,
- FFBoxFit? fit,
- FFDimensions? dimensions,
- FFBorderRadius? borderRadius,
- bool? cached,
- @Deprecated('This field is deprecated.') bool? legacyHero,
- @Deprecated('This field is deprecated.') String? legacyHeroTag,
- String? darkModePath,
- bool? hasDarkModeAsset,
- bool? useBlurHash,
- String? legacyBlurHashString,
- int? cacheFadeDuration,
- FFHero? hero,
- bool? showErrorImage,
- FFAlignment? imageAlignment,
- FFVariable? localFileVariable,
- int? legacyCacheWidth,
- int? legacyCacheHeight,
- FFStringValue? pathValue,
- FFStringValue? blurHashStringValue,
- FFIntegerValue? cacheWidthValue,
- FFIntegerValue? cacheHeightValue,
- FFImage_FFImageFormat? format,
Implementation
factory FFImage({
$core.String? legacyPath,
FFImage_FFImageType? type,
FFBoxFit? fit,
FFDimensions? dimensions,
FFBorderRadius? borderRadius,
$core.bool? cached,
@$core.Deprecated('This field is deprecated.') $core.bool? legacyHero,
@$core.Deprecated('This field is deprecated.') $core.String? legacyHeroTag,
$core.String? darkModePath,
$core.bool? hasDarkModeAsset,
$core.bool? useBlurHash,
$core.String? legacyBlurHashString,
$core.int? cacheFadeDuration,
FFHero? hero,
$core.bool? showErrorImage,
FFAlignment? imageAlignment,
FFVariable? localFileVariable,
$core.int? legacyCacheWidth,
$core.int? legacyCacheHeight,
FFStringValue? pathValue,
FFStringValue? blurHashStringValue,
FFIntegerValue? cacheWidthValue,
FFIntegerValue? cacheHeightValue,
FFImage_FFImageFormat? format,
}) {
final result = create();
if (legacyPath != null) result.legacyPath = legacyPath;
if (type != null) result.type = type;
if (fit != null) result.fit = fit;
if (dimensions != null) result.dimensions = dimensions;
if (borderRadius != null) result.borderRadius = borderRadius;
if (cached != null) result.cached = cached;
if (legacyHero != null) result.legacyHero = legacyHero;
if (legacyHeroTag != null) result.legacyHeroTag = legacyHeroTag;
if (darkModePath != null) result.darkModePath = darkModePath;
if (hasDarkModeAsset != null) result.hasDarkModeAsset = hasDarkModeAsset;
if (useBlurHash != null) result.useBlurHash = useBlurHash;
if (legacyBlurHashString != null)
result.legacyBlurHashString = legacyBlurHashString;
if (cacheFadeDuration != null) result.cacheFadeDuration = cacheFadeDuration;
if (hero != null) result.hero = hero;
if (showErrorImage != null) result.showErrorImage = showErrorImage;
if (imageAlignment != null) result.imageAlignment = imageAlignment;
if (localFileVariable != null) result.localFileVariable = localFileVariable;
if (legacyCacheWidth != null) result.legacyCacheWidth = legacyCacheWidth;
if (legacyCacheHeight != null) result.legacyCacheHeight = legacyCacheHeight;
if (pathValue != null) result.pathValue = pathValue;
if (blurHashStringValue != null)
result.blurHashStringValue = blurHashStringValue;
if (cacheWidthValue != null) result.cacheWidthValue = cacheWidthValue;
if (cacheHeightValue != null) result.cacheHeightValue = cacheHeightValue;
if (format != null) result.format = format;
return result;
}