fileExists method
Returns whether a file already exists at targetPath.
Implementation
@override
Future<bool> fileExists(String targetName) async {
final String targetPath = await _getLocalFilePath(targetName);
final bool exists = await methodChannel.invokeMethod<bool>('fileExists', {
'targetPath': targetPath,
}) ??
false;
return exists;
}