contains method
Implementation
bool contains(
Object? key, {
bool isRemoveIfFound = false,
}) {
if (key is String) {
if (arguments.contains(key)) {
if (isRemoveIfFound) {
arguments.remove(key);
}
return true;
}
} else if (key is List<String>) {
for (final String element in key) {
if (arguments.contains(element)) {
if (isRemoveIfFound) {
arguments.remove(element);
}
return true;
}
}
}
return false;
}