SystemEnvironmentManager constructor
SystemEnvironmentManager({
- required SystemEnvironment environment,
A manager class to handle the current SystemEnvironment.
The SystemEnvironment passed to the constructor is the SDK-owned baseline, and is trusted as-is: only the SDK that builds the manager is meant to provide it. Every environment passed to updateEnvironment is sanitized against that baseline, so an integrator can enrich the Stream client header without changing the SDK identity it reports.
Implementation
SystemEnvironmentManager({
required SystemEnvironment environment,
}) : _sdkName = environment.sdkName,
_sdkVersion = environment.sdkVersion,
_osName = environment.osName,
_environment = environment;