OptimizationResult class

Result of optimizing a single asset.

Constructors

OptimizationResult({required AssetInfo originalAsset, required int optimizedSize, required int savedBytes, required DateTime optimizedAt})
Creates an optimization result.
OptimizationResult.fromJson(Map<String, dynamic> json)
factory

Properties

assetType String
File type of the original asset.
no setter
hashCode int
The hash code for this object.
no setterinherited
optimizedAt DateTime
When the optimization was performed.
final
optimizedSize int
Size after optimization in bytes.
final
originalAsset AssetInfo
The original asset before optimization.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
savedBytes int
Bytes saved by optimization.
final
savingsPercentage double
Percentage of size reduction.
no setter

Methods

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

Operators

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