PocketBaseRemoteConfig<T extends HasUpdatedAt, Id> class

Configuration for PocketBaseRemoteStore

Note: This scaffold avoids a hard dependency on the pocketbase SDK. Inject your client or HTTP layer via client and implement the integration in the TODO sections. Replace placeholders with your schema.

Constructors

PocketBaseRemoteConfig.new({required PocketBase client, required String collection, required String idField, required String updatedAtField, required String? deletedAtField, required String scopeNameField, required String scopeKeysField, required Id idOf(T), required String idToString(Id), required Id idFromString(String), required Map<String, dynamic> toJson(T), required T fromJson(Map<String, dynamic>), String? serverTimeEndpoint, SyncScope? defaultScope, bool injectScopeOnWrite = false, Map<String, dynamic> scopeFieldsBuilder(SyncScope scope)?, void onParsePageStats({required int skipped, required int total})?})
const

Properties

client → PocketBase
final
collection String
final
defaultScope SyncScope?
final
deletedAtField String?
final
fromJson → T Function(Map<String, dynamic>)
final
hashCode int
The hash code for this object.
no setterinherited
idField String
final
idFromString → Id Function(String)
final
idOf → Id Function(T)
final
idToString String Function(Id)
final
injectScopeOnWrite bool
final
onParsePageStats → void Function({required int skipped, required int total})?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopeFieldsBuilder Map<String, dynamic> Function(SyncScope scope)?
final
scopeKeysField String
final
scopeNameField String
final
serverTimeEndpoint String?
final
toJson Map<String, dynamic> Function(T)
final
updatedAtField String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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