ImageHelper constructor
ImageHelper({
- required String image,
- required ImageType imageType,
- ImageShape imageShape = ImageShape.none,
- Color? color,
- double? height,
- double? width,
- BoxFit boxFit = BoxFit.contain,
- Widget? errorBuilder,
- FilterQuality filterQuality = FilterQuality.low,
- Widget? loaderBuilder,
- BlendMode blendMode = BlendMode.srcIn,
- Alignment alignment = Alignment.center,
- double scale = 1.0,
- BorderRadiusGeometry? borderRadius,
- Color? defaultLoaderColor,
- Color? defaultErrorBuilderColor,
- Curve fadeInAnime = Curves.easeIn,
- Curve fadeOutAnime = Curves.easeOut,
- Duration fadeInDuration = const Duration(milliseconds: 300),
- Duration fadeOutDuration = const Duration(milliseconds: 300),
- Animation<
double> ? opacity, - ImageRepeat imageRepeat = ImageRepeat.noRepeat,
- bool excludeFromSemantics = false,
- Rect? centerSlice,
- bool gaplessPlayback = false,
- bool isAntiAlias = false,
- bool matchTextDirection = false,
- String? semanticLabel,
- int? frameRate = 15,
- 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});