setEnvironment method

  1. @override
ClientBrowser setEnvironment(
  1. String value
)

The ID of the project environment to act in, alongside the project ID. Used with Appwrite Cloud projects that have environments.

Implementation

@override
ClientBrowser setEnvironment(value) {
  config['environment'] = value;
  addHeader('X-Appwrite-Environment', value);
  return this;
}