writableBytes property
int
writableBytes
Amount of free bytes inside the buffer from the current writerIndex (inclusive).
Does not take maxCapacity into account.
Implementation
int get writableBytes => capacity() - writerIndex;