CanvasObjectsRepository class

Constructors

CanvasObjectsRepository()

Properties

cache → RepoCache<CanvasObjectRecordModel>?
no setterinherited
db → Database
no setterinherited
fromJson CanvasObjectRecordModel Function(Map<String, dynamic> json)
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyRegisterUpdateInTransaction({required String objectType, required String createdByPeerKey, required CanvasRegisterClockModel clock, String? registerJson, bool? isDeleted}) Future<bool>
Applies a signed register update produced locally.
applyStateSnapshotInTransaction({required CanvasObjectRecordModel object, required List<CanvasRegisterClockModel> registerClocks}) Future<bool>
clock(String objectId, CanvasRegisterName registerName, {String canvasId = CanvasModel.defaultCanvasId}) Query<CanvasRegisterClockModel?>
clocks(String objectId, {String canvasId = CanvasModel.defaultCanvasId}) Query<Map<CanvasRegisterName, CanvasRegisterClockModel>>
conversation(String conversationKey, {String canvasId = CanvasModel.defaultCanvasId, bool includeDeleted = false}) Query<List<CanvasObjectRecordModel>>
createObjectInTransaction({required CanvasObjectRecordModel object, required List<CanvasRegisterClockModel> registerClocks}) Future<bool>
Inserts a freshly authored canvas object and its four signed register clocks in a single pass. Falls back to per-register apply if the object already exists, so the call remains safe to retry.
first(String sql, [List<Object?> parameters = const []]) Query<CanvasObjectRecordModel?>
inherited
id(String objectId, {String canvasId = CanvasModel.defaultCanvasId}) Query<CanvasObjectRecordModel?>
model(Map<String, Object?> value) CanvasObjectRecordModel
inherited
models(List<Map<String, Object?>> values) List<CanvasObjectRecordModel>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
placeholders(int count) String
inherited
query(String sql, [List<Object?> parameters = const []]) Query<List<CanvasObjectRecordModel>>
inherited
rawQuery(String sql, [List<Object?> parameters = const []]) → SqlQuery
inherited
snapshot(Iterable<String> objectIds, {required String conversationKey, String canvasId = CanvasModel.defaultCanvasId}) Query<List<({CanvasObjectRecordModel object, List<CanvasRegisterClockModel> registerClocks})>>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited