# value property

int get value

Returns the byte value if this represents a single byte.

Example:

    final b = Byte(42);
    print(b.value);  // 42

Throws NoGuaranteeException if this represents multiple bytes.

## Implementation

    int get value {
      if (_bytes.length != 1) {
        throw NoGuaranteeException('Cannot get single value from byte array of length ${_bytes.length}');
      }
      return _bytes[0];
    }