exists property
True if resource exists in the underlying storage system.
Implementation
@override
bool get exists {
// On VM platforms, use the IO file if available
final ioFile = _ioFile;
if (ioFile != null) {
return ioFile.existsSync();
}
// On web, XFile.length returns a future, so we can't easily check existence
// synchronously. We assume the file exists if we have an XFile instance.
return true;
}