ImageCompressor class

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

compressBase64Image({required String base64Image, int maxWidth = 1024, int quality = 85}) Future<String>
Compresses a base64 encoded image by resizing and quality optimization Returns a new base64 string with reduced size base64Image - The original base64 encoded image string maxWidth - Maximum width to scale down to (maintains aspect ratio) quality - JPEG quality (1-100), lower means more compression