client static method

SyncClient client(
  1. Store store,
  2. String serverUrl,
  3. SyncCredentials credentials
)

Creates a Sync client associated with the given store and configures it with the given options. This does not initiate any connection attempts yet, call SyncClient.start() to do so.

Before SyncClient.start(), you can still configure some aspects of the client, e.g. its SyncRequestUpdatesMode mode.

Implementation

static SyncClient client(
        Store store, String serverUrl, SyncCredentials credentials) =>
    clientMultiUrls(store, [serverUrl], credentials);