getSourceKind method

Future<SourceKind> getSourceKind(
  1. String path
)

Return a future that will complete with the source kind of the file with the given absolute, normalized path. If the path does not represent a file or if the kind of the file cannot be determined, then the future will complete with SourceKind.UNKNOWN.

Implementation

Future<SourceKind> getSourceKind(String path);