RestApi constructor
RestApi({
- required Client client,
- required String database,
- String basePath = '',
- String? idToken,
- Timeout? timeout,
- WriteSizeLimit? writeSizeLimit,
Default constructor.
If client
is as SSEClient, it is directly used as this.client
.
Otherwise, SSEClient.proxy is used to create a SSEClient from the
given simple Client
.
Implementation
RestApi({
required Client client,
required this.database,
this.basePath = '',
this.idToken,
this.timeout,
this.writeSizeLimit,
}) : client = client is SSEClient ? client : SSEClient.proxy(client);