createClient function
Creates a new client to interact with your backend application developed in
Altogic. You need to specify the envUrl
and clientKey
to create a new
client object. You can create a new environment or access your app envUrl
from the Environments view and create a new clientKey
from App
Settings/Client library view in Altogic designer.
envUrl
The base URL of the Altogic application environment where a
snapshot of the application is deployed.
clientKey
The client library key of the app.
options
Additional configuration parameters.
dart.ClientOptions.apiKey
A valid API key of the environment.
dart.ClientOptions.localStorage
Client storage handler to store user and
session data.
dart.ClientOptions.signInRedirect
The sign in page URL to redirect the
user when user's session becomes invalid.
Returns the newly created client instance.
Implementation
AltogicClient createClient(String envUrl, String clientKey,
[ClientOptions? options]) =>
AltogicClient(envUrl, clientKey, options);