isCode property

bool get isCode

Implementation

bool get isCode =>
    type == FileType.code ||
    ['js', 'dart', 'py', 'java', 'cpp', 'html', 'css', 'json', 'xml']
        .contains(extension.toLowerCase());