deviceInfo top-level property

FutureOr<DeviceInfo> get deviceInfo

Implementation

FutureOr<DeviceInfo> get deviceInfo {
  if (_deviceInfo != null) return _deviceInfo!;
  _deviceInfo = loadPlatformInfo().then((_) {
    return _;
  });
  return _deviceInfo!;
}
set deviceInfo (FutureOr<DeviceInfo> info)

Implementation

set deviceInfo(FutureOr<DeviceInfo> info) {
  assert(info is DeviceInfo, "Must provide a resolved future");
  _deviceInfo = info as DeviceInfo;
}