Use deprecated io constants (#17278)

The new values are not ready for use yet inside Google
This commit is contained in:
Todd Volkert
2018-05-03 22:27:29 -07:00
committed by GitHub
parent cdbdafa8f3
commit d820e5f3b1
38 changed files with 77 additions and 75 deletions

View File

@@ -460,7 +460,7 @@ Future<int> findAvailablePort() async {
while (true) {
try {
final ServerSocket socket =
await ServerSocket.bind(InternetAddress.loopbackIPv4, port);
await ServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, port); // ignore: deprecated_member_use
await socket.close();
return port;
} catch (_) {