TiffImageView.source constructor
const
TiffImageView.source({
- Key? key,
- required TiffAsyncByteSource source,
- int pageIndex = 0,
- TiffAsyncByteSource? pyramidLevelsSource,
- 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,
Shows page pageIndex of the file source reads, decoded on the
current isolate and loaded piece by piece — works on every platform,
including the web (see the class doc comment).
Implementation
const TiffImageView.source({
super.key,
required TiffAsyncByteSource this.source,
this.pageIndex = 0,
this.pyramidLevelsSource,
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,
}) : filePath = null,
pyramidLevelsPath = null,
assert(gamma > 0),
assert(maxUpsample >= 1),
assert(cacheBytes > 0),
assert(workerCount == null || workerCount > 0);