isDeviceLowRam static method

Future<bool> isDeviceLowRam()

Implementation

static Future<bool> isDeviceLowRam() async {
  try {
    final int memory = await SystemInfoPlus.physicalMemory ?? 5;
    if (memory < LOW_RAM_THRESHOLD) {
      return true;
    }
    return false;
  } catch (error) {
    return false;
  }
}