has method

  1. @override
bool has(
  1. String key
)
override

Checks if an environment variable is set.

Returns true if the variable exists, regardless of its value.

if (env.has('DATABASE_URL')) {
  // Database is configured
}

Implementation

@override
bool has(String key) => _env.containsKey(key);