SqliteLocalRepository<T extends CloudSyncable> constructor

SqliteLocalRepository<T extends CloudSyncable>({
  1. required Database database,
  2. required T fromJson(
    1. Map<String, dynamic>
    ),
  3. required String tableName,
})

Creates a SqliteLocalRepository instance.

database is the sqlite database. fromJson is a function to convert a JSON map into a T object. tableName is the name of the table in the SQLite database where the entities are stored.

Implementation

SqliteLocalRepository({
  required this.database,
  required this.fromJson,
  required this.tableName,
});