deleteFile method
Future<bool>
deleteFile({
- required String fileName,
- required DirType dirType,
- required DirName dirName,
- required String relativePath,
override
Implementation
@override
Future<bool> deleteFile({
required String fileName,
required DirType dirType,
required DirName dirName,
required String relativePath,
}) async {
final status = await methodChannel.invokeMethod<bool>('deleteFile', {
"fileName": fileName,
"dirType": dirType.index,
"dirName": dirName.folder,
"appFolder": relativePath,
});
return status ?? false;
}