Hope this helps some future Mac user: Symptom: As of Nov 2023, Flutter install requires connecting to top-level domain .dev (flutter.dev, dart.dev, pub.dev) ; my mac would absolutely NOT resolve any URLs with that top level domain !! (https requests, curl, wget, pings just hang) - but a diff ubuntu host on local network, no problem.
Cause: at some distant point in the past (2016!), on my Mac, a DNS entry was configured to resolve .dev domains using 127.0.0.1 as nameserver – oops.
Fix: essentially remove file named dev in /etc/resolver ; details in this thread