getEnvironmentByKey method

Future<C>? getEnvironmentByKey(
  1. K env
)

Directly fetch configuration for env.

Missing keys fall back to the default; returns null if both are absent. Strict instances throw instead of falling back.

Implementation

Future<C>? getEnvironmentByKey(K env) => _service.configFor(env);