findServicesWithDescriptor method

List<RunningService> findServicesWithDescriptor(
  1. ServiceDescriptor descriptor
)

Returns all running services which have the associated descriptor.

Implementation

List<RunningService> findServicesWithDescriptor(
        ServiceDescriptor descriptor) =>
    runningServices
        .where((element) => element.descriptor == descriptor)
        .toList();