getRealPath static method

Future<String?> getRealPath(
  1. String path,
  2. String type
)

Get real file path from content URI

Implementation

static Future<String?> getRealPath(String path, String type) async {
  try {
    final result = await _channel.invokeMethod('getRealPath', {
      'path': path,
      'type': type,
    });

    return result is String ? result : null;
  } catch (e) {
    return null;
  }
}