ProductPicture.fromTransientFile constructor

ProductPicture.fromTransientFile({
  1. required TransientFile transientFile,
  2. required Size size,
  3. OpenFoodFactsLanguage? language,
  4. bool allowAlternativeLanguage = false,
  5. Product? product,
  6. ImageField? imageField,
  7. String? fallbackUrl,
  8. VoidCallback? onTap,
  9. String? heroTag,
  10. bool showObsoleteIcon = false,
  11. bool showOwnerIcon = false,
  12. BorderRadius? borderRadius,
  13. double imageFoundBorder = 0.0,
  14. double imageNotFoundBorder = 0.0,
  15. TextStyle? errorTextStyle,
  16. WidgetBuilder? noImageBuilder,
  17. bool blurFilter = true,
})

Implementation

ProductPicture.fromTransientFile({
  required TransientFile transientFile,
  required Size size,
  OpenFoodFactsLanguage? language,
  bool allowAlternativeLanguage = false,
  Product? product,
  ImageField? imageField,
  String? fallbackUrl,
  VoidCallback? onTap,
  String? heroTag,
  bool showObsoleteIcon = false,
  bool showOwnerIcon = false,
  BorderRadius? borderRadius,
  double imageFoundBorder = 0.0,
  double imageNotFoundBorder = 0.0,
  TextStyle? errorTextStyle,
  WidgetBuilder? noImageBuilder,
  bool blurFilter = true,
}) : this._(
       transientFile: transientFile,
       product: product,
       imageField: imageField,
       language: language,
       allowAlternativeLanguage: allowAlternativeLanguage,
       size: size,
       fallbackUrl: fallbackUrl,
       heroTag: heroTag,
       onTap: onTap,
       borderRadius: borderRadius,
       imageFoundBorder: imageFoundBorder,
       imageNotFoundBorder: imageNotFoundBorder,
       errorTextStyle: errorTextStyle,
       showObsoleteIcon: showObsoleteIcon,
       showOwnerIcon: showOwnerIcon,
       noImageBuilder: noImageBuilder,
       blurFilter: blurFilter,
       imageProvider: null,
     );