get method

String? get(
  1. String key, {
  2. String? fallback,
})

Reads a string value by key.

Values are checked from explicit overrides, meta tags, browser globals, and finally fallback.

Implementation

String? get(String key, {String? fallback}) {
  return values[key] ??
      _fromMeta(key) ??
      _fromBrowserGlobal('__FLINT_ENV__', key) ??
      _fromBrowserGlobal('flintEnv', key) ??
      fallback;
}