Relevant code:
String _baseUrl = 'localhost:3001/api/v1';
String _path = 'items';
Uri uri = Uri.http(_baseUrl, _path);
The error occurs on the call to Uri.http. Here's the error:
FormatException (FormatException: Invalid radix-10 number (at character 1)
3001/api/v1
^