TiffImageView constructor

const TiffImageView({
  1. Key? key,
  2. required String filePath,
  3. int pageIndex = 0,
  4. String? pyramidLevelsPath,
  5. void setUpIsolate()?,
  6. TransformationController? controller,
  7. TiffImageViewStart initialView = TiffImageViewStart.fit,
  8. double maxScale = 40,
  9. double maxUpsample = 1.3,
  10. double brightness = 0,
  11. double contrast = 1,
  12. double gamma = 1,
  13. int cacheBytes = 256 * 1024 * 1024,
  14. int? workerCount,
  15. bool showMinimap = true,
  16. bool showLoadingIndicator = true,
  17. Color backgroundColor = const Color(0xFFE0E0E0),
  18. ValueChanged<Object>? onError,
})

Implementation

const TiffImageView({
  super.key,
  required this.filePath,
  this.pageIndex = 0,
  this.pyramidLevelsPath,
  this.setUpIsolate,
  this.controller,
  this.initialView = TiffImageViewStart.fit,
  this.maxScale = 40,
  this.maxUpsample = 1.3,
  this.brightness = 0,
  this.contrast = 1,
  this.gamma = 1,
  this.cacheBytes = 256 * 1024 * 1024,
  this.workerCount,
  this.showMinimap = true,
  this.showLoadingIndicator = true,
  this.backgroundColor = const Color(0xFFE0E0E0),
  this.onError,
}) : assert(gamma > 0),
     assert(maxUpsample >= 1),
     assert(cacheBytes > 0),
     assert(workerCount == null || workerCount > 0);