byTarget method
Return the runtime whose supportedPrefixes contains a prefix of
target. Iterates in insertion order for deterministic results.
Implementation
UiRuntimePort? byTarget(String target) {
for (final entry in _prefixToId.entries) {
if (target.startsWith(entry.key)) {
return _byId[entry.value];
}
}
return null;
}