exists method

  1. @override
bool exists()
override

Return true if this source exists.

Clients should consider using the method AnalysisContext.exists because contexts can have local overrides of the content of a source that the source is not aware of and a source with local content is considered to exist even if there is no file on disk.

@return true if this source exists

Implementation

@override
bool exists() => file.exists;