length property

int get length

Returns the number of bytes in this Byte object.

Example:

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

print(single.length);    // 1
print(multiple.length);  // 3

Implementation

int get length => _bytes.length;