private async void FlashFeaturesAsync(IReadOnlyDictionary<BasicFeatureLayer, List<long>> flashFeatures)
{
//Get the active map view.
var mapView = MapView.Active;
if (mapView == null)
return;
await QueuedTask.Run(() =>
{
//Flash the collection of features.
mapView.FlashFeature(flashFeatures);
});
}