getBool method
Reads 1-byte as a boolean.
The offset must satisy the relations 0 ≤ offset ≤ offset+1 ≤ this.length.
final Buffer buffer = Buffer.fromList([1]);
final bool value = buffer.getBool(0);
print(value); // true
Implementation
bool getBool(final int offset) {
return asByteData().getUint8(offset) != 0;
}