DotEnvFileSource class

A native dotenv file with optional prefix filtering and nested keys.

Implemented types

Constructors

DotEnvFileSource(String path, {bool optional = false, String prefix = '', String separator = '__'})
Resolves path at construction; optional permits only missing files.

Properties

hashCode → int
The hash code for this object.
no setterinherited
optional → bool
Whether an absent file produces an empty source.
final
path → String
Absolute file path captured at construction.
final
prefix → String
Exact prefix removed from matching keys.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
separator → String
Separator used to turn flat keys into nested objects.
final

Methods

load() → Future<Map<String, Object?>>
Loads this source; later registered sources override earlier ones.
override
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