exists method

Future<bool> exists()

Returns true if the file exist. False, otherwise.

Implementation

Future<bool> exists() async {
  _checkIfFileSystemIsTheSame();
  File file = _file ?? await this.file();
  return file.existsSync();
}