update method Null safety

void update(
  1. Uint8List address,
  2. Uint8List lastBlock
)

Updates the persisted XchainModel.lastBlock.

Implementation

void update(Uint8List address, Uint8List lastBlock) {
  _db.execute('''UPDATE $table
      SET $columnLastBlock = x'${Bytes.hexEncode(lastBlock)}'
       WHERE $columnAddress = x'${Bytes.hexEncode(address)}'; ''');
}