current method
Resolves explicit environment input or the compile-time define.
Missing keys fall back to the default unless strict mode is enabled.
Returns null only when both configurations are absent. Factory failures
propagate. There is no cancellation of pending factories.
Implementation
Future<C>? current() {
final env = _service.resolveFromBuildDefine();
return _service.configFor(env);
}