getRealPathFromUri function

Future<String?> getRealPathFromUri(
  1. Uri uri
)

Helper method to generate the file path of the given uri

See Get real path from URI, Android KitKat new storage access framework for details.

Implementation

Future<String?> getRealPathFromUri(Uri uri) async => kDocumentFileHelperChannel
    .invokeMethod('getRealPathFromUri', <String, String>{'uri': '$uri'});