getWhere static method
Returns the first APIRoot matched by matcher
.
Implementation
static APIRoot? getWhere(bool Function(APIRoot apiRoot) matcher,
{bool lastAsDefault = false}) =>
_instances.values.firstWhereOrNull(matcher) ??
(lastAsDefault ? get(singleton: false) : null);