isLocallyAvailable method

Future<bool> isLocallyAvailable(
  1. String id, {
  2. bool isOrigin = false,
  3. int subtype = 0,
  4. PMDarwinAVFileType? darwinFileType,
})

Implementation

Future<bool> isLocallyAvailable(
  String id, {
  bool isOrigin = false,
  int subtype = 0,
  PMDarwinAVFileType? darwinFileType,
}) async {
  if (Platform.isIOS || Platform.isMacOS) {
    return await _channel.invokeMethod(
      PMConstants.mIsLocallyAvailable,
      <String, dynamic>{
        'id': id,
        'isOrigin': isOrigin,
        'subtype': subtype,
        'darwinFileType': darwinFileType?.value ?? 0,
      },
    );
  }

  return true;
}