Toggles folder expansion/collapse state
void toggleFolder(String dirPath, String rootPath) { if (dirPath != rootPath) { _folderStates[dirPath] = !(_folderStates[dirPath] ?? false); } notifyListeners(); }