resolveNavigableFormats function
Resolve which navigable source formats to display for info.
When info is null, the extension is unavailable, or the query errored,
no formats are returned because availability has not been confirmed.
Otherwise the exact set of usable navigable formats is returned.
Implementation
List<RohdSourceFormat> resolveNavigableFormats(RohdModuleInfo? info) {
if (info == null || !info.extensionAvailable || info.error != null) {
return const [];
}
return info.navigableSourceFormats;
}