ModelStorageException class

Insufficient storage for model download.

Thrown when there is not enough free storage space before starting download.

Inheritance

Constructors

ModelStorageException({required OCRModule module, required int requiredBytes, required int availableBytes})

Properties

availableBytes int
Bytes currently available
final
availableMB int
Available storage in MB
no setter
cause Object?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String
finalinherited
module OCRModule
The module that cannot be downloaded
final
neededMB int
Additional storage needed in MB
no setter
requiredBytes int
Bytes needed for download
final
requiredMB int
Required storage in MB
no setter
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