ScannedPage class

One page captured during a scan session.

A page is the source of truth for the edit pipeline applied in the detail view: the raw originalPath is perspective-cropped with quad → produces croppedPath; a non-original filter → produces filteredPath; a non-zero rotationTurns → produces rotatedPath. outputPath always resolves to the best (latest) available version.

Constructors

ScannedPage({required String originalPath, Quad? quad, String? croppedPath, String? filteredPath, String? rotatedPath, ScanFilter filter = ScanFilter.original, int rotationTurns = 0})

Properties

croppedPath ↔ String?
Path to the perspective-corrected image, once cropped.
getter/setter pair
filter ↔ ScanFilter
The filter currently applied to this page.
getter/setter pair
filteredPath ↔ String?
Path to the filtered image, when a non-original filter is applied.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
originalPath → String
The unmodified capture from the camera.
final
outputPath → String
The best available representation: rotated → filtered → cropped → original.
no setter
processedPath → String
The cropped-then-filtered image, before rotation. Falls back to the original capture when no crop has run yet.
no setter
quad ↔ Quad?
Detected or user-adjusted corners used for the perspective crop.
getter/setter pair
rotatedPath ↔ String?
Path to the rotated image, when rotationTurns is non-zero. Always the final step of the pipeline (applied on top of crop + filter).
getter/setter pair
rotationTurns ↔ int
Clockwise rotation applied to the page, in quarter turns (0–3).
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited