fileExists method

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

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