printResponse static method

dynamic printResponse(
  1. String url,
  2. Response? response
)

Implementation

static printResponse(String url, Response? response) {
  if (response != null) {
    print("$url : ${response.statusCode} ${response.data}");
  } else {
    print("$url : response == null");
  }
}