CompressResult class
Result returned by the compressor after processing a PDF.
Includes the original size, compressed size, and the file path to the compressed PDF.
Constructors
- CompressResult.new({required double originalSizeMB, required double compressedSizeMB, required String compressedPath})
-
Creates a result object from given fields.
const
- CompressResult.fromMap(Map map)
-
Converts a platform map into a CompressResult.
factory
Properties
- compressedPath → String
-
Path to the compressed PDF file on disk.
final
- compressedSizeMB → double
-
Compressed PDF size in megabytes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- originalSizeMB → double
-
Original PDF size in megabytes.
final
- 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