EnvironmentModel class

Inheritance

Constructors

EnvironmentModel({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})
EnvironmentModel.fromEntity(Environment environment)
factory

Properties

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

Methods

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

Operators

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