AppConfiguration constructor
AppConfiguration(
- String appId, {
- Uri? baseUrl,
- Directory? baseFilePath,
- Duration defaultRequestTimeout = const Duration(seconds: 60),
- List<
int> ? metadataEncryptionKey, - MetadataPersistenceMode metadataPersistenceMode = MetadataPersistenceMode.plaintext,
- Duration maxConnectionTimeout = const Duration(minutes: 2),
- HttpClient? httpClient,
Instantiates a new AppConfiguration with the specified appId.
Implementation
AppConfiguration(
this.appId, {
Uri? baseUrl,
Directory? baseFilePath,
this.defaultRequestTimeout = const Duration(seconds: 60),
this.metadataEncryptionKey,
this.metadataPersistenceMode = MetadataPersistenceMode.plaintext,
this.maxConnectionTimeout = const Duration(minutes: 2),
HttpClient? httpClient,
}) : baseUrl = baseUrl ?? Uri.parse(realmCore.getDefaultBaseUrl()),
baseFilePath = baseFilePath ?? Directory(_path.dirname(Configuration.defaultRealmPath)),
httpClient = httpClient ?? _defaultClient {
if (appId == '') {
throw RealmException('Supplied appId must be a non-empty value');
}
}