platformEnvironment top-level property Null safety

Map<String, String> platformEnvironment

Environment without debug VM_OPTIONS and without any user overrides

Instead replace with an optional TEKARTIK_DART_VM_OPTIONS

Implementation

Map<String, String> get platformEnvironment => _platformEnvironment ??=
    environmentFilterOutVmOptions(Platform.environment);
void platformEnvironment=(Map<String, String>? environment)

Warning, change the platform environment and reset.

Implementation

set platformEnvironment(Map<String, String>? environment) {
  _userAppDataPath = null;
  _userHomePath = null;
  _platformEnvironment = environment;
  shellEnvironment = null;
}