isSame function

bool isSame(
  1. Service a,
  2. Service b
)

Returns true if the two Service instances refer to the same service.

Implementation

bool isSame(Service a, Service b) => a.name == b.name && a.type == b.type;