getValue method

  1. @override
String getValue()
override

Implementation

@override
String getValue() {
  var subMsg = '';
  if (error != null) {
    subMsg = 'Error:$error';
  } else {
    subMsg =
        'Duration:${response == null ? '' : '${response!.endTimestamp - startTimestamp}'}\nRequest:${request.toString()}\n\nResponse:${response.toString()}';
  }
  return 'Uri:$uri\nMethod:$method\n$subMsg';
}