init static method
Initializes the App-write service
endpoint is the endpoint from the App-write console
projectId is the project ID from the App-write console
selfSigned is used to set the self signed certificate - default is true
Implementation
static Future<void> init({
/// Endpoint from App-write console
required String endpoint,
/// Project ID from App-write console
required String projectId,
// Recovery link
String? recovery,
/// selfSigned is used to set the self signed certificate - default is true
/// `true` only for development
bool selfSigned = true,
}) async {
_isInitialized = true;
_client
..setEndpoint(endpoint)
..setProject(projectId)
..setSelfSigned(status: selfSigned);
_recovery = recovery;
}