isEmpty property

bool get isEmpty

Returns true if this Byte object contains no bytes.

Example:

final empty = Byte.empty();
final notEmpty = Byte(0);

print(empty.isEmpty);     // true
print(notEmpty.isEmpty);  // false

Implementation

bool get isEmpty => _bytes.isEmpty;