getUriFromFilePath method

  1. @override
Future<Uri?> getUriFromFilePath({
  1. required String path,
})
override

Implementation

@override
Future<Uri?> getUriFromFilePath({required String path}) async {
  final uriString =
      await methodChannel.invokeMethod<String?>('getUriFromFilePath', {
    "filePath": path,
  });
  if (uriString != null) {
    return Uri.parse(uriString);
  }
  return null;
}