isSingleByte property

bool get isSingleByte

Returns true if this represents a single byte value.

Example:

final single = Byte(42);
final multiple = Byte.fromList([1, 2, 3]);

print(single.isSingleByte);    // true
print(multiple.isSingleByte);  // false

Implementation

bool get isSingleByte => _bytes.length == 1;