MethodChannelFlutterCompress class
MethodChannel + EventChannel implementation of FlutterCompressPlatform.
Channel keys are centralized in _Keys so the Dart and native sides have a
single source of truth. (If this plugin grows, these hand-written maps are
the natural point to migrate to Pigeon for compile-time-checked messages.)
- Inheritance
-
- Object
- PlatformInterface
- FlutterCompressPlatform
- MethodChannelFlutterCompress
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
progressStream
→ Stream<
CompressionProgress> -
Broadcast stream of progress events for all in-flight jobs.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
String? id) → Future< void> -
override
-
clearCache(
) → Future< void> -
override
-
compress(
String id, String path, VideoCompressConfig config, String? outputPath) → Future< VideoCompressResult> -
Compress
pathusingconfig.ididentifies the job (for progress correlation and cancellation). WhenoutputPathis non-null the encoded file is written there; otherwise it lands in the plugin cache.override -
compressImage(
String path, ImageCompressConfig config, String? outputPath) → Future< ImageCompressResult> -
override
-
estimate(
String path, VideoCompressConfig config) → Future< CompressionEstimate> -
override
-
getImageInfo(
String path) → Future< ImageMeta> -
override
-
getThumbnail(
String path, {required int positionMs, required int quality, int? maxWidth}) → Future< String> -
override
-
getVideoInfo(
String path) → Future< VideoInfo> -
override
-
isCompressing(
) → Future< bool> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveToDownloads(
String path, String? fileName) → Future< String> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited