sendFileData method
Implementation
void sendFileData(Uint8List data) {
_requireState<_ZSendingContentState>();
for (var i = 0; i < data.length; i += maxDataSubpacketSize) {
final end = min(i + maxDataSubpacketSize, data.length);
_enqueue(ZModemDataPacket.fileData(Uint8List.sublistView(data, i, end)));
}
}