FFImage constructor

FFImage({
  1. String? legacyPath,
  2. FFImage_FFImageType? type,
  3. FFBoxFit? fit,
  4. FFDimensions? dimensions,
  5. FFBorderRadius? borderRadius,
  6. bool? cached,
  7. @Deprecated('This field is deprecated.') bool? legacyHero,
  8. @Deprecated('This field is deprecated.') String? legacyHeroTag,
  9. String? darkModePath,
  10. bool? hasDarkModeAsset,
  11. bool? useBlurHash,
  12. String? legacyBlurHashString,
  13. int? cacheFadeDuration,
  14. FFHero? hero,
  15. bool? showErrorImage,
  16. FFAlignment? imageAlignment,
  17. FFVariable? localFileVariable,
  18. int? legacyCacheWidth,
  19. int? legacyCacheHeight,
  20. FFStringValue? pathValue,
  21. FFStringValue? blurHashStringValue,
  22. FFIntegerValue? cacheWidthValue,
  23. FFIntegerValue? cacheHeightValue,
  24. 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;
}