RequestSqliteCache<TRequest> constructor

RequestSqliteCache<TRequest>({
  1. required String attemptColumn,
  2. required String createdAtColumn,
  3. required String lockedColumn,
  4. required String primaryKeyColumn,
  5. required TRequest request,
  6. required List<String> requestColumns,
  7. required String tableName,
  8. required String updateAtColumn,
})

Matches any HTTP requests that send data (or 'push'). 'Pull' requests most often have an outcome that exists in memory (e.g. deserializing to a model). Since callbacks cannot be stored in SQLite and there's no guarantee of the destination existing (say disposal or a crash has since occurred), 'pull' requests will be ignored.

Implementation

RequestSqliteCache({
  required this.attemptColumn,
  required this.createdAtColumn,
  required this.lockedColumn,
  required this.primaryKeyColumn,
  required this.request,
  required this.requestColumns,
  required this.tableName,
  required this.updateAtColumn,
});