device property

Device? get device

Get the current device for this client

Implementation

Device? get device {
  if (_device == null) {
    throw Exception('Device Not Initialized');
  }

  if (!_device!.loaded) {
    throw Exception('Device Not Loaded');
  }

  return _device;
}