exclude static method
Excludes specified keys from the config parameters.
options
configuration parameters to be processed.keys
a list of keys to be included. return a processed config parameters.
Implementation
static ConfigParams exclude(ConfigParams options, List<String>? keys) {
if (keys == null || keys.isEmpty) return options;
var result = ConfigParams.fromString(options.clone().toString());
for (var key in keys) {
result.remove(key);
}
return result;
}