Environment class

Hardware, operating system, and runtime snapshot captured at the time of an incident.

Implementers

Constructors

Environment({required String appVersion, required String runtimeVersion, required String osName, required String osVersion, required String deviceModel, required bool isPhysicalDevice, required int freeRamMb, required int totalRamMb, required int batteryLevel, required bool isLowMemory})
Creates an immutable Environment telemetry snapshot.
const

Properties

appVersion → String
Application semantic version (e.g., '1.0.0').
final
batteryLevel → int
Battery charge percentage (0-100).
final
deviceModel → String
Manufacturer device model identifier.
final
freeRamMb → int
Approximate available free RAM in megabytes.
final
hashCode → int
The hash code for this object.
no setterinherited
isLowMemory → bool
Whether the operating system flagged a low memory warning condition.
final
isPhysicalDevice → bool
Whether the execution environment is a physical device or an emulator/simulator.
final
osName → String
Operating system name (e.g., 'Android', 'iOS', 'Web').
final
osVersion → String
Operating system release or kernel version.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
runtimeVersion → String
Runtime or Dart VM version.
final
totalRamMb → int
Total physical RAM installed on the device in megabytes.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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