doubleValue property

double? get doubleValue

Returns double, if the underlying value isDouble.

Otherwise returns null.

Implementation

double? get doubleValue {
  if (_valueType == ValueType.Float) {
    return _readFloat(_offset, _parentWidth);
  }
  if (_valueType == ValueType.IndirectFloat) {
    return _readFloat(_indirect, BitWidthUtil.fromByteWidth(_byteWidth));
  }
  return null;
}