BZImage.fromFile constructor
BZImage.fromFile(
- String? filePath, {
- Key? key,
- double? width,
- double? height,
- PlaceholderWidgetBuilder? placeholder,
- LoadingErrorWidgetBuilder? errorWidget,
- BoxFit fit = BoxFit.fill,
- Alignment alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- String? cacheKey,
- Duration fadeInDuration = const Duration(milliseconds: 300),
- Curve fadeInCurve = Curves.easeIn,
- Duration fadeOutDuration = const Duration(milliseconds: 1000),
- Curve fadeOutCurve = Curves.easeOut,
- bool useOldImageOnUrlChange = false,
- bool matchTextDirection = false,
- bool isCircular = false,
- BorderRadius? borderRadius,
- BoxBorder? border,
Implementation
BZImage.fromFile(
String? filePath, {
Key? key,
double? width,
double? height,
PlaceholderWidgetBuilder? placeholder,
LoadingErrorWidgetBuilder? errorWidget,
BoxFit fit = BoxFit.fill,
Alignment alignment = Alignment.center,
ImageRepeat repeat = ImageRepeat.noRepeat,
String? cacheKey,
Duration fadeInDuration = const Duration(milliseconds: 300),
Curve fadeInCurve = Curves.easeIn,
Duration fadeOutDuration = const Duration(milliseconds: 1000),
Curve fadeOutCurve = Curves.easeOut,
bool useOldImageOnUrlChange = false,
bool matchTextDirection = false,
bool isCircular = false,
BorderRadius? borderRadius,
BoxBorder? border,
}) : this(
key: key,
imageUrl: 'file://$filePath',
width: width,
height: height,
placeholder: placeholder,
errorWidget: errorWidget,
fit: fit,
alignment: alignment,
repeat: repeat,
cacheKey: cacheKey,
fadeInDuration: fadeInDuration,
fadeInCurve: fadeInCurve,
fadeOutDuration: fadeOutDuration,
fadeOutCurve: fadeOutCurve,
useOldImageOnUrlChange: useOldImageOnUrlChange,
matchTextDirection: matchTextDirection,
isCircular: isCircular,
borderRadius: borderRadius,
border: border,
);