getFileUri method

  1. @override
Future<Uri?> getFileUri({
  1. required String fileName,
  2. required DirType dirType,
  3. required DirName dirName,
  4. required String relativePath,
})
override

Implementation

@override
Future<Uri?> getFileUri({
  required String fileName,
  required DirType dirType,
  required DirName dirName,
  required String relativePath,
}) async {
  final uriString = await methodChannel.invokeMethod<String?>('getFileUri', {
    "fileName": fileName,
    "dirType": dirType.index,
    "dirName": dirName.folder,
    "appFolder": relativePath,
  });
  if (uriString != null) {
    return Uri.parse(uriString);
  }
  return null;
}