deviceRoleName property

String? get deviceRoleName

The role name of the first assigned device; null if assignedDevices is null. Throws a StateError if the list is empty.

Implementation

String? get deviceRoleName => assignedDevices?.first.device.roleName;