ExtendedImageWithAssetsPicker.file constructor

ExtendedImageWithAssetsPicker.file(
  1. File file, {
  2. Key? key,
  3. ExtendedImageLoadStateBuilder? loading,
  4. ExtendedImageLoadStateBuilder? failed,
  5. double? width,
  6. double? height,
  7. BoxFit? fit = BoxFit.cover,
})

Implementation

ExtendedImageWithAssetsPicker.file(File file,
    {super.key,
    this.loading,
    this.failed,
    super.width,
    super.height,
    super.fit = BoxFit.cover})
    : super.file(file,
          imageCacheName: file.path,
          enableLoadState: true,
          loadStateChanged:
              _buildLoadStateChanged(failed: failed, loading: loading));