AvailableRamMethod class

Detection method that checks for unusually low available RAM ratio.

This method calculates the ratio of available RAM to physical RAM and flags devices with very low available memory. Emulators often have limited RAM allocation compared to physical devices, resulting in low available RAM ratios.

Reliability: Medium (60-75%)

  • Good indicator for resource-constrained emulators
  • May have false positives on devices with many running apps
  • Some emulators may allocate more RAM to avoid detection

Score: 10 points when available RAM ratio is below 20%

Performance: Fast - only checks numeric properties

Inheritance

Constructors

AvailableRamMethod.new({double score = 10, String? reason = "Available RAM unusually low"})

Properties

hashCode int
The hash code for this object.
no setterinherited
reason String?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double
finalinherited

Methods

execute() Future<({String? reason, double score})>
Executes the method and returns a score between 0 and 100
override
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