ConfigService class

A service that provides access to environment variables.

Constructors

ConfigService.new(DotEnv _dotEnv)

Properties

hashCode int
The hash code for this object.
no setterinherited
isGlobal bool
The isGlobal property is used to define if the provider is global.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getOrNull(String key) String?
Get the value of an environment variable or return null if it is not set.
getOrThrow(String key) String
Get the value of an environment variable or throw an exception if it is not set.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited