TiffImageView constructor
const
TiffImageView({
- Key? key,
- required String filePath,
- int pageIndex = 0,
- String? pyramidLevelsPath,
- void setUpIsolate()?,
- TransformationController? controller,
- TiffImageViewStart initialView = TiffImageViewStart.fit,
- double maxScale = 40,
- double maxUpsample = 1.3,
- double brightness = 0,
- double contrast = 1,
- double gamma = 1,
- int cacheBytes = 256 * 1024 * 1024,
- int? workerCount,
- bool showMinimap = true,
- bool showLoadingIndicator = true,
- Color backgroundColor = const Color(0xFFE0E0E0),
- 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);