toString method

  1. @override
String toString()
override

Custom string output summarizing the response.

Implementation

@override
String toString() {
  return 'DioResponseDetails('
      'statusCode: $statusCode, '
      'method: $requestMethod, '
      'path: $requestPath, '
      'isSuccess: $isSuccess, '
      'duration: ${calculatedDuration?.inMilliseconds}ms'
      ')';
}