SystemEnvironmentManager class

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.

Constructors

SystemEnvironmentManager({required SystemEnvironment environment})
A manager class to handle the current SystemEnvironment.

Properties

environment → SystemEnvironment
The current SystemEnvironment.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userAgent → String
Returns the Stream client user agent string based on the current environment value.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateEnvironment(SystemEnvironment environment) → void
Updates the current SystemEnvironment.

Operators

operator ==(Object other) → bool
The equality operator.
inherited