SuprSendStoreCubit constructor

SuprSendStoreCubit(
  1. String workspaceKey,
  2. String workspaceSecret,
  3. String? distinctId,
  4. String? subscriberId,
)

Implementation

SuprSendStoreCubit(String workspaceKey, String workspaceSecret,
    String? distinctId, String? subscriberId)
    : super({
        "config": {
          "workspaceKey": workspaceKey,
          "workspaceSecret": workspaceSecret,
          "distinctId": distinctId,
          "subscriberId": subscriberId,
          "collectorApiUrl": 'https://hub.suprsend.com',
          "apiUrl": 'https://inboxs.live',
          "pollingInterval": 20,
          "batchSize": 20,
          "batchTimeInterval": 30 * 24 * 60 * 60 * 1000,
          "storage_key": "_suprsend_inbox_storage"
        },
        "notifData": {
          "notifications": [],
          "unSeenCount": 0,
          "lastFetchedOn": null,
          "firstFetchedOn": null,
          "pollingTimerId": null
        },
        "rerender": true
      });