CompressionResult class

Result of a compression operation

Constructors

CompressionResult({required MediaFile originalFile, required MediaFile compressedFile, required double compressionRatio, required Duration compressionTime, required bool isSuccess, String? errorMessage})
const
CompressionResult.fromMap(Map<String, dynamic> map)
Create from Map
factory

Properties

compressedFile MediaFile
final
compressionRatio double
final
compressionTime Duration
final
errorMessage String?
final
hashCode int
The hash code for this object.
no setteroverride
isSuccess bool
final
originalFile MediaFile
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({MediaFile? originalFile, MediaFile? compressedFile, double? compressionRatio, Duration? compressionTime, bool? isSuccess, String? errorMessage}) CompressionResult
Create a copy with updated values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert to Map
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override