ImageHelper constructor

ImageHelper({
  1. required String image,
  2. required ImageType imageType,
  3. ImageShape imageShape = ImageShape.none,
  4. Color? color,
  5. double? height,
  6. double? width,
  7. BoxFit boxFit = BoxFit.contain,
  8. Widget? errorBuilder,
  9. FilterQuality filterQuality = FilterQuality.low,
  10. Widget? loaderBuilder,
  11. BlendMode blendMode = BlendMode.srcIn,
  12. Alignment alignment = Alignment.center,
  13. double scale = 1.0,
  14. BorderRadiusGeometry? borderRadius,
  15. Color? defaultLoaderColor,
  16. Color? defaultErrorBuilderColor,
  17. Curve fadeInAnime = Curves.easeIn,
  18. Curve fadeOutAnime = Curves.easeOut,
  19. Duration fadeInDuration = const Duration(milliseconds: 300),
  20. Duration fadeOutDuration = const Duration(milliseconds: 300),
  21. Animation<double>? opacity,
  22. ImageRepeat imageRepeat = ImageRepeat.noRepeat,
  23. bool excludeFromSemantics = false,
  24. Rect? centerSlice,
  25. bool gaplessPlayback = false,
  26. bool isAntiAlias = false,
  27. bool matchTextDirection = false,
  28. String? semanticLabel,
  29. int? frameRate = 15,
  30. BoxBorder? boxBorder,
})

Implementation

ImageHelper(
    {required this.image,
    required this.imageType,
    this.imageShape = ImageShape.none,
    this.color,
    this.height,
    this.width,
    this.boxFit = BoxFit.contain,
    this.errorBuilder,
    this.filterQuality = FilterQuality.low,
    this.loaderBuilder,
    this.blendMode = BlendMode.srcIn,
    this.alignment = Alignment.center,
    this.scale = 1.0,
    this.borderRadius,
    this.defaultLoaderColor,
    this.defaultErrorBuilderColor,
    this.fadeInAnime = Curves.easeIn,
    this.fadeOutAnime = Curves.easeOut,
    this.fadeInDuration = const Duration(milliseconds: 300),
    this.fadeOutDuration = const Duration(milliseconds: 300),
    this.opacity,
    this.imageRepeat = ImageRepeat.noRepeat,
    this.excludeFromSemantics = false,
    this.centerSlice,
    this.gaplessPlayback = false,
    this.isAntiAlias = false,
    this.matchTextDirection = false,
    this.semanticLabel,
    this.frameRate = 15,
    this.boxBorder});