maxMemory property

String? get maxMemory

Gets the maximum Java heap size

Implementation

String? get maxMemory {
  final option = _jvmOptions.firstWhere(
    (option) => option.startsWith('-Xmx'),
    orElse: () => '',
  );

  if (option.isEmpty) {
    return null;
  }

  return option.substring(4); // Remove the '-Xmx' prefix
}