client static method

SyncClient client(
  1. Store store,
  2. String serverUrl,
  3. SyncCredentials credentials, {
  4. Map<String, String>? filterVariables,
})

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.

To configure Sync filter variables, pass variable names mapped to their value to filterVariables.

Sync client filter variables can be used in server-side Sync filters to filter out objects that do not match the filter.

Implementation

static SyncClient client(
        Store store, String serverUrl, SyncCredentials credentials,
        {Map<String, String>? filterVariables}) =>
    clientMultiUrls(store, [serverUrl], credentials,
        filterVariables: filterVariables);