lookupProbe method
Lookup all probes of type type
. Returns an empty list if none are found.
Implementation
List<Probe> lookupProbe(String type) {
List<Probe> retrainedProbes = probes;
retrainedProbes.retainWhere((probe) => probe.type == type);
return retrainedProbes;
}