BytesTransferable constructor
BytesTransferable(
- Uint8List bytes
Creates a BytesTransferable from bytes.
A copy of bytes is stored internally; the caller may safely modify the
original buffer afterwards.
Implementation
BytesTransferable(Uint8List bytes) : bytes = Uint8List.fromList(bytes);