offlineOperations property

  1. @protected
  2. @visibleForTesting
  3. @nonVirtual
Set<OfflineOperation<T>> offlineOperations
inherited

Implementation

@protected
@visibleForTesting
@nonVirtual
Set<OfflineOperation<T>> get offlineOperations {
  final result = db.select('SELECT * FROM _offline_operations');
  return result.map((r) {
    return OfflineOperation<T>(
        label: DataRequestLabel.parse(r['label']),
        httpRequest: r['request'],
        timestamp: r['timestamp'],
        headers: Map<String, String>.from(jsonDecode(r['headers'])),
        body: r['body'],
        key: r['key'],
        adapter: this as Adapter<T>);
  }).toSet();
}