EventSystemProperties class
Event System Properties These return all of the system properties we generate based on the device type and data we wish to always include in every event.
Constructors
- EventSystemProperties.new({String? appVersion, String? ipAddress, DeviceProperties? device, BrowserProperties? browser, OperatingSystemProperties? operatingSystem})
-
Creates a new instance of EventSystemProperties.
const
-
EventSystemProperties.fromJson(Map<
String, dynamic> json) -
Creates a new instance of EventSystemProperties from a JSON object.
This is used to convert a JSON object from the server into an instance of EventSystemProperties.
factory
Properties
- appVersion → String?
-
The version of the parent bundle
final
- browser → BrowserProperties?
-
All of the browser properties
These include the browser name, version, and user agent
final
- device → DeviceProperties?
-
All of the device related properties
These include anything that is specific to the physical device
such as model, operating system version, platform, etc
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ipAddress → String?
-
The IP address of the device
final
- operatingSystem → OperatingSystemProperties?
-
All of the operating system properties
These include the operating system name (i.e. iOS or macOS)
and the version number (i.e. 17.5.1)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? appVersion, String? ipAddress, DeviceProperties? device, BrowserProperties? browser, OperatingSystemProperties? operatingSystem}) → EventSystemProperties - Creates a new instance of EventSystemProperties with the provided mutated properties
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the EventSystemProperties to a JSON object. This is used to convert the object to a JSON object that can be sent to the server.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited