update method Null safety
- Uint8List address,
- 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)}'; ''');
}