init static method
Initializes the Appwrite service
endpoint
is the endpoint from the Appwrite console
projectId
is the project ID from the Appwrite console
selfSigned
is used to set the self signed certificate - default is true
Implementation
static Future<void> init({
/// Endpoint from Appwrite console
required String endpoint,
/// Project ID from Appwrite 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;
}