PlatformEnvironmentSource class

Native process environment strings, optionally filtered and nested.

This is unrelated to compiler defines and is not a live OS subscription.

Implemented types

Constructors

PlatformEnvironmentSource({String prefix = '', String separator = '__', Map<String, String>? environment})
Uses Platform.environment unless a test/application environment is given.

Properties

hashCode → int
The hash code for this object.
no setterinherited
prefix → String
Case-sensitive prefix to filter and strip.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
separator → String
Nested key separator; defaults to a double underscore.
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