dispose static method
void
dispose()
Disposes all registered services Useful when you need to reinitialize the configuration
Implementation
static void dispose() {
if (locator.isRegistered<Client>()) {
locator.unregister<Client>();
}
if (locator.isRegistered<Databases>()) {
locator.unregister<Databases>();
}
if (locator.isRegistered<Realtime>()) {
locator.unregister<Realtime>();
}
if (locator.isRegistered<AppwriteOffline>()) {
locator.unregister<AppwriteOffline>();
}
}