Env class final

Constructors

Env()

Properties

errorReporter ErrorReporter Function()
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

boolean({String? message}) EnvBoolean
define(Map<String, EnvSchema<ErrorReporter>> schema, {Directory? root, bool includeDartEnv = true}) → void
Validates environment variables against a schema.
defineOf<T extends DefineEnvironment>(T source(), {Directory? root, bool includeDartEnv = true}) → void
Defines environment variables using a class that implements DefineEnvironment.
dispose() → void
enumerable<T extends Enumerable>(List<T> source, {String? message}) EnvEnum
get<T>(String key, {T? defaultValue}) → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
number({String? message}) EnvNumber
parse(String content) Map<String, dynamic>
string({String? message}) EnvString
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
validate(Map<String, EnvSchema<ErrorReporter>> schema, Map<String, dynamic> data) Map<String, dynamic>
Parses environment variables from a string content into a Map.

Operators

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