write abstract method
Writes the provided bytes
to the sink, optionally with offsets.
Returns the number of bytes actually written.
This method is non-blocking and may be buffered.
Implementation
int write(List<int> bytes, [int offset = 0, int? length]);