useMappedPort property
bool
get
useMappedPort
Returns true when this connection mode requires the Docker-assigned
ephemeral host port rather than the container's internal port number.
Implementation
bool get useMappedPort => this != ConnectionMode.bridgeIp;