adoptServer method

Future<void> adoptServer(
  1. DVRecord record
)

Takes the server's record as this device's copy and as the base its next writes are checked against.

Implementation

Future<void> adoptServer(DVRecord record) async {
  await _setServer(record);
  final DVRecord? local = await table.read(record.key);
  await table.write(record.values,
      base: local, onConflict: DVConflict.lastWriteWins);
}