MethodChannelImageCompressor class
Method-channel backend used on Android and iOS.
- Inheritance
-
- Object
- PlatformInterface
- ImageCompressorPlatform
- MethodChannelImageCompressor
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
encodeOnce(
EncodeRequest request) → Future< EncodeResult> -
Encode
requestexactly once and return the resulting bytes plus decoded dimensions. Backends must decode at a reduced size whenmaxWidth/maxHeightare set (downsample-on-decode) to avoid loading huge bitmaps into memory.override -
encodeToSize(
EncodeSizeRequest request) → Future< EncodeResult> -
Decode
requestonce, then binary-search quality down tominQualityuntil the output fits undermaxBytes. Returns the best fitting result, or (if nothing fits) the smallest achievable withreachedTargetfalse.override -
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