doesCrcMatch method

bool doesCrcMatch(
  1. String? crcString
)

Implementation

bool doesCrcMatch(String? crcString) {
  if (!initialized) throw ArgumentError(AbstractDao.C_MUST_INIT);
  if (crcString == null) {
    tableTransactions.setCrc(null);
    return true;
  }
  int? crc = tableTransactions.getTrDto().crc;
  print("crc=$crc==" +
      CrcUtils.getCrcFromString(crcString).toString() +
      " '" +
      crcString +
      "'");
  return CrcUtils.getCrcFromString(crcString) == crc;
}