getIgnored function
Implementation
List<String> getIgnored(WidgetRef ref) {
// The rolesProvider lists the roles for the different variables which we need
// to know for parsing the R scripts.
Map<String, Role> roles = ref.read(rolesProvider);
// Extract the ignored variable from the rolesProvider.
//
// 20250205 gjw Add the newly ignored through a transform variables as well,
List<String> ignored = [];
roles.forEach((key, value) {
if (value == Role.ignore || value == Role.ignoreAfterTransformed) {
ignored.add(key);
}
});
return ignored;
}