fileExists method

  1. @override
Future<bool> fileExists(
  1. String targetName
)
override

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;
}