Skip to content
env_reader_stubFunctions

readEnvVar

String? readEnvVar(String key)

Stub for reading environment variables in web environments.

In environments without dart:io, environment variables are unavailable, so always returns null.

key - environment variable name (ignored).

Always returns null.