updateEnvironment method
Updates the Environment for the client and handle necessary changes in the Authenticator
Implementation
Future<void> updateEnvironment(ApptiveGridEnvironment environment) async {
if (environment != options.environment) {
await authenticator.logout();
_options = options.copyWith(environment: environment);
await authenticator.performSetup();
_attachmentProcessor =
AttachmentProcessor(options, authenticator, httpClient: _client);
}
}