getFullFile method

Future<String?> getFullFile(
  1. String id, {
  2. required bool isOrigin,
  3. PMProgressHandler? progressHandler,
  4. int subtype = 0,
  5. PMDarwinAVFileType? darwinFileType,
})

Implementation

Future<String?> getFullFile(
  String id, {
  required bool isOrigin,
  PMProgressHandler? progressHandler,
  int subtype = 0,
  PMDarwinAVFileType? darwinFileType,
}) async {
  final params = <String, dynamic>{
    'id': id,
    'isOrigin': isOrigin,
    'subtype': subtype,
    'darwinFileType': darwinFileType?.value ?? 0,
  };
  _injectProgressHandlerParams(params, progressHandler);
  return _channel.invokeMethod(PMConstants.mGetFullFile, params);
}