EnvironmentConfig class

Reads browser-side environment configuration for Flint UI apps.

Constructors

EnvironmentConfig([Map<String, String> values = const {}])
Creates an environment config with explicit override values.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Map<String, String>
Explicit configuration values checked before browser-provided values.
final

Methods

get(String key, {String? fallback}) String?
Reads a string value by key.
getBool(String key, {bool fallback = false}) bool
Reads a boolean value by key.
getDouble(String key, {double fallback = 0}) double
Reads a double value by key.
getInt(String key, {int fallback = 0}) int
Reads an integer value by key.
merge(Map<String, String> values) EnvironmentConfig
Returns a new config with values layered over the current values.
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