isDeviceId function

bool isDeviceId(
  1. String id
)

Whether id is a value this build accepts at all.

Implementation

bool isDeviceId(String id) => id == fitDeviceId || deviceById(id) != null;