isDuplicatedDeviceId method

bool isDuplicatedDeviceId(
  1. String s
)

Implementation

bool isDuplicatedDeviceId(String s) =>
    devices.any((element) => element.id == s);