EnvVarResourceDetector constructor

EnvVarResourceDetector([
  1. EnvironmentService? environmentService
])

Creates a new EnvVarResourceDetector with the specified environment service.

If no environment service is provided, the singleton instance will be used.

@param environmentService Optional service for accessing environment variables

Implementation

EnvVarResourceDetector([EnvironmentService? environmentService])
    : _environmentService = environmentService ?? EnvironmentService.instance;