PocketBaseImageProvider constructor

const PocketBaseImageProvider({
  1. required $PocketBase client,
  2. required String recordId,
  3. required String recordCollectionName,
  4. required String filename,
  5. String? thumb,
  6. int? pixelWidth,
  7. int? pixelHeight,
  8. Size? size,
  9. double? scale,
  10. Duration? expireAfter,
  11. String? token,
  12. bool autoGenerateToken = false,
  13. RequestPolicy requestPolicy = RequestPolicy.cacheAndNetwork,
  14. Duration timeout = const Duration(seconds: 30),
})

Creates an ImageProvider for a PocketBase file.

Implementation

const PocketBaseImageProvider({
  required this.client,
  required this.recordId,
  required this.recordCollectionName,
  required this.filename,
  this.thumb,
  this.pixelWidth,
  this.pixelHeight,
  this.size,
  this.scale,
  this.expireAfter,
  this.token,
  this.autoGenerateToken = false,
  this.requestPolicy = RequestPolicy.cacheAndNetwork,
  this.timeout = const Duration(seconds: 30),
});