addNext method

void addNext(
  1. ModbusRecordType type,
  2. num value
)

Implementation

void addNext(ModbusRecordType type, num value) {
  _currentBytePos = _recordData.length * 2;
  var currentData = _recordData;
  _recordData = Uint16List(currentData.length + type.recordLength);
  _recordData.setAll(0, currentData);
  setNext(type, value);
}