AnalyticsAppContext class final

Client app context attached to a client-sourced AnalyticsEvent.

Required for source=client events; absent for server / app-wide events. platform is an unknown-preserving wire string (see AnalyticsPlatform).

Annotations
  • @immutable

Constructors

AnalyticsAppContext({required String platform, required String locale, required String sdkVersion, String? appVersion, String? appBuild})
Creates an app context.
const
AnalyticsAppContext.fromJson(Map<String, Object?> json)
Decodes from a JSON map. Fails loud (FormatException) on a missing or non-string required field.
factory

Properties

appBuild String?
Host app build (e.g. 42), if known.
final
appVersion String?
Host app version (e.g. 2.3.1), if known.
final
hashCode int
The hash code for this object.
no setteroverride
locale String
BCP-47-ish locale (e.g. en_US).
final
platform String
Reporting platform (ios/android/…). Unknown-preserving wire string.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkVersion String
The Restage SDK version.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Encodes to a JSON map. Optional fields are omitted when null.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override