PdfOcrModelFile class
One downloadable file that makes up an on-device OCR model - typically an ONNX network or a character dictionary.
- Annotations
Constructors
- PdfOcrModelFile({required String name, required Uri url, String? sha256, int? sizeBytes})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The file's cache name (also its on-disk name under the model directory).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sha256 → String?
-
Optional lowercase hex SHA-256 of the file. When set, a download whose
digest does not match is rejected (and the partial file deleted). When
null, integrity is not checked - fine for a self-hosted bundle you
control, but set it for anything you ship to users.
final
- sizeBytes → int?
-
Optional expected size in bytes, used only to weight download progress
before the server reports a
content-length.final - url → Uri
-
Where the file is downloaded from.
final
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