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
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
valueslayered 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