save method Null safety
- XchainModel xchain
Persists xchain
in _db
.
Implementation
void save(XchainModel xchain) {
_db.execute('INSERT INTO $table VALUES ( ?, ?, ? );',
[xchain.address, xchain.publicKey.encode(), xchain.lastBlock]);
}
Persists xchain
in _db
.
void save(XchainModel xchain) {
_db.execute('INSERT INTO $table VALUES ( ?, ?, ? );',
[xchain.address, xchain.publicKey.encode(), xchain.lastBlock]);
}