I'm working on making http requests from a Flutter project. I have seen several answers refer to IOClient
. For example, here and here and here. However, the following imports do not work (though they apparently used to):
import 'package:http/http.dart';
import 'package:http/http.dart' show IOClient;
Instead, the second one gives the error message:
The library 'package:http/http.dart' doesn't export a member with the shown name 'IOClient'.
How do I import IOClient?