ErrorInd.fromBytes constructor

ErrorInd.fromBytes(
  1. Uint8List data
)

Implementation

factory ErrorInd.fromBytes(Uint8List data) {
  if (!_isValidSize(data)) {
    throw IncorrectMessageSizeException();
  }
  return ErrorInd(
    code: data[_codeOffset],
  );
}