fileExists method
Implementation
@override
Future<bool> fileExists({
required String fileName,
String? folderPath,
bool fromRoot = false,
}) async {
final String folder = fromRoot
? (folderPath ?? '')
: (folderPath != null ? 'DCIM/$folderPath' : 'DCIM');
final bool? result = await methodChannel.invokeMethod('fileExists', {
'fileName': fileName,
'folderPath': folder,
'fromRoot': fromRoot,
});
return result ?? false;
}