EnvField class

Represents a single environment variable field definition.

Constructors

EnvField({required String name, required String type, dynamic defaultValue, bool required = false, String? pattern, bool includeInEnv = true, bool encrypted = false, String? description})
const
EnvField.fromMap(Map<String, dynamic> map)
Creates an EnvField from a map (typically from YAML).
factory

Properties

defaultValue → dynamic
Default value if not provided.
final
description String?
Description of the field.
final
encrypted bool
Whether this value should be encrypted.
final
hashCode int
The hash code for this object.
no setterinherited
includeInEnv bool
Whether to include in generated .env file.
final
name String
Name of the environment variable.
final
pattern String?
Optional regex pattern for validation.
final
required bool
Whether this field is required.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Type of the variable (String, int, bool, double).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts to a map (for YAML serialization).
toString() String
A string representation of this object.
inherited

Operators

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