resolve static method
The endpoint of the daemon, or null with the reason in
unavailableReason when none is configured or no socket exists.
It only looks at the environment and the file system: the daemon may
still be down. environment is the process environment by default.
Implementation
static DockerEndpoint? resolve({Map<String, String>? environment}) =>
_resolve(environment ?? Platform.environment).$1;