deviceInfo property
TestDeviceInfo?
deviceInfo
Returns the test device info from the test suite. This assumes that the device hasn't changed during the entire run so it will return the first non-null instance from any of the results.
Implementation
TestDeviceInfo? get deviceInfo {
final infos = _results.where((result) => result?.deviceInfo != null);
final info = infos.isNotEmpty == true ? infos.first?.deviceInfo : null;
return info;
}