BZImage.fromFile constructor

BZImage.fromFile(
  1. String? filePath, {
  2. Key? key,
  3. double? width,
  4. double? height,
  5. PlaceholderWidgetBuilder? placeholder,
  6. LoadingErrorWidgetBuilder? errorWidget,
  7. BoxFit fit = BoxFit.fill,
  8. Alignment alignment = Alignment.center,
  9. ImageRepeat repeat = ImageRepeat.noRepeat,
  10. String? cacheKey,
  11. Duration fadeInDuration = const Duration(milliseconds: 300),
  12. Curve fadeInCurve = Curves.easeIn,
  13. Duration fadeOutDuration = const Duration(milliseconds: 1000),
  14. Curve fadeOutCurve = Curves.easeOut,
  15. bool useOldImageOnUrlChange = false,
  16. bool matchTextDirection = false,
  17. bool isCircular = false,
  18. BorderRadius? borderRadius,
  19. 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,
      );