fileExists function

Future<bool> fileExists(
  1. String filePath
)

Returns true if the file located at filePath exists.

Implementation

Future<bool> fileExists(String filePath) {
  final localSystemFilePath = toLocalSystemPathFormat(filePath);
  final file = File(localSystemFilePath);
  return file.exists();
}