import 'package:alice/alice.dart'; import 'package:http/http.dart'; extension AliceHttpExtensions on Future { /// Intercept http request with alice. This extension method provides additional /// helpful method to intercept https' response. Future interceptWithAlice(Alice alice, {dynamic body}) async { final Response response = await this; alice.onHttpResponse(response, body: body); return response; } }