Envied class final

Annotation used to specify the class to contain environment variables that will be generated from a .env file.

Constructors

Envied({String? path, bool? requireEnvFile, String? name, bool obfuscate = false, bool allowOptionalFields = false, bool useConstantCase = false})
const

Properties

allowOptionalFields bool
Allows all the values to be optional when the type is nullable.
final
hashCode int
The hash code for this object.
no setterinherited
name String?
The value to use as name for the generated class, with an underscore _ prefixed.
final
obfuscate bool
Allows all the values to be encrypted using a random generated key that is then XOR'd with the encrypted value when being accessed the first time. Please note that the values can not be offered with the const qualifier, but only with final. Can be overridden by the per-field obfuscate option!
final
path String
The file path of the .env file, relative to the project root, which will be used to generate environment variables.
final
requireEnvFile bool
Whether to require a env file exists, or else the build_runner will fail if the file does not exits
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useConstantCase bool
Whether to convert field names from camelCase to CONSTANT_CASE when the @EnvField annotation is not explicitly assigned a varName.
final

Methods

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