Envied class final
Annotation used to specify the class to contain environment variables that will be generated from a .env
file.
Constructors
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
- interpolate → bool
-
Whether to interpolate the values for all fields.
If interpolate is
true
, the value will be interpolated with the environment variables.final - 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 withfinal
. 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 - rawStrings → bool
-
Whether to use the raw string format for all string values.
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