This example uses packages/fetch_api.
See the output in browser developer console.
Actual code:
import 'package:fetch_api/fetch_api.dart';
final resp = await fetch('https://httpbin.org/anything');
final txt = await resp.text();
print('body: ${txt}');