Memory class

Memory info. All sizes are in megabytes.

Constructors

Memory(num? appMem, num? totalMem, num? freeMem, bool? lowMemory, {num? appAvailableMem, num? lowMemoryThreshold, num? advertisedMem, num? javaHeapUsedMem, num? javaHeapMaxMem})
Memory.fromMap(Map<String, dynamic> map)
factory

Properties

advertisedMem → num?
ONLY Android 14+. RAM size advertised for the device, e.g. 8192 for an "8 GB" device (ActivityManager.MemoryInfo.advertisedMem).
final
appAvailableMem → num?
ONLY iOS. Memory the app can still allocate before reaching its memory limit (os_proc_available_memory). Null on Android and iOS simulator.
final
appMem → num?
Memory used by the app.
final
freeMem → num?
Free memory of the device.
final
hashCode → int
The hash code for this object.
no setterinherited
javaHeapMaxMem → num?
ONLY Android. Max Java heap the app can use (Runtime.maxMemory).
final
javaHeapUsedMem → num?
ONLY Android. Java heap used by the app (Runtime.totalMemory - Runtime.freeMemory).
final
lowMemory → bool?
Android: system low memory state. iOS: true when appAvailableMem is below 25% of the app memory limit. Null on iOS simulator.
final
lowMemoryThreshold → num?
ONLY Android. Free memory level at which the system considers memory low (ActivityManager.MemoryInfo.threshold).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalMem → num?
Total physical memory of the device.
final

Methods

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

Operators

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