setMaxMemory method

void setMaxMemory(
  1. String value
)

Sets the maximum Java heap size

Implementation

void setMaxMemory(String value) {
  // Remove any existing Xmx settings to avoid duplicates
  _jvmOptions.removeWhere((option) => option.startsWith('-Xmx'));
  _jvmOptions.add('-Xmx$value');
}