getWithinName static method
Implementation
static APIRoot? getWithinName(String part,
{bool lastAsDefault = false, bool caseSensitive = false}) {
if (!caseSensitive) {
part = part.toLowerCase();
}
return getWhere((apiRoot) {
var n = caseSensitive ? apiRoot.name : apiRoot.name.toLowerCase();
return n.contains(part);
}, lastAsDefault: lastAsDefault);
}