finishActivity method

Future<void> finishActivity(
  1. Request request,
  2. Response response,
  3. String title,
  4. String message,
)

Implementation

Future<void> finishActivity(
  Request request,
  Response response,
  String title,
  String message,
) async {
  if (onHttpFinish is Function) {
    await onHttpFinish!(request.hashCode, title, message);
  }
  await logRequest(request);
  await logResponse(response);
}