isCodeFile property

bool get isCodeFile

Checks if this file path represents a code file

Returns true if the file is likely a code file based on extension

Example:

print('/path/to/script.dart'.isCodeFile); // true

Implementation

bool get isCodeFile => QFileInfoUtils.isCode(this);