hasBytes method
returns true if there are bytes left to be read
Example:
final input = Input.fromHex('0x010203');
print(input.hasBytes()); // true
// reading all the bytes
input.readBytes(3);
// no more bytes left
print(input.hasBytes()); // false
Implementation
bool hasBytes() {
return remainingLength != null && remainingLength! > 0;
}