getFileUri method
Future<Uri?>
getFileUri({
- required String fileName,
- required DirType dirType,
- required DirName dirName,
- 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;
}