ImageLoader.image constructor
ImageLoader.image(
- String? url, {
- Key? key,
- PlaceholderWidgetBuilder? placeBuilder,
- LoadingErrorWidgetBuilder? errorBuilder,
- BoxFit fit = BoxFit.cover,
- double? width,
- double? height,
- String? thumbUrl,
- String? placeHolder,
- String? errorHolder,
- String? heroTag,
- bool transitionOnUserGestures = false,
- Decoration? decoration,
- double? border,
- Color? borderColor,
- Type? notification,
- bool useSingleCache = false,
- Duration? fadeOutDuration,
- Duration? fadeInDuration,
- List<
BoxShadow> ? boxShadow,
Implementation
ImageLoader.image(
this.url, {
super.key,
this.placeBuilder,
this.errorBuilder,
this.fit = BoxFit.cover,
double? width,
double? height,
String? thumbUrl,
this.placeHolder,
this.errorHolder,
this.heroTag,
this.transitionOnUserGestures = false,
this.decoration,
this.border,
this.borderColor,
this.notification,
this.useSingleCache = false,
this.fadeOutDuration,
this.fadeInDuration,
this.boxShadow,
}) {
_width = width;
_height = height;
_type = typeNormal;
_thumbUrl = thumbUrl;
}