getOrNull static method

String? getOrNull(
  1. String key
)

Retrieves the string value for key, or returns null if key is absent.

Does not throw if the key is missing.

final proxy = BloomEnv.getOrNull('HTTP_PROXY');

Implementation

static String? getOrNull(String key) => _env[key];