diff --git a/packages/brick_offline_first_with_rest/lib/src/offline_first_with_rest_repository.dart b/packages/brick_offline_first_with_rest/lib/src/offline_first_with_rest_repository.dart index f6c370ee..ce028200 100644 --- a/packages/brick_offline_first_with_rest/lib/src/offline_first_with_rest_repository.dart +++ b/packages/brick_offline_first_with_rest/lib/src/offline_first_with_rest_repository.dart @@ -151,11 +151,11 @@ abstract class OfflineFirstWithRestRepository initialize() async { + Future initialize({bool autoStartQueue = true}) async { await super.initialize(); // Start queue processing - offlineRequestQueue.start(); + if (autoStartQueue) offlineRequestQueue.start(); } @override