compress method

  1. @override
Future<Map?> compress({
  1. required String sourcePath,
  2. required String level,
})
override

Implementation

@override
Future<Map<dynamic, dynamic>?> compress({
  required String sourcePath,
  required String level,
}) async {
  final map = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(
    'compress',
    {'sourcePath': sourcePath, 'level': level},
  );
  return map;
}