@@ -24,21 +24,21 @@ class DioLinkServerException extends ServerException {
2424 /// Response which caused the exception
2525 final dio.Response response;
2626
27- const DioLinkServerException ({
28- @required this .response,
29- @required Response parsedResponse,
30- dynamic originalException
31- }) : super (
32- parsedResponse: parsedResponse,
33- originalException: originalException
34- );
27+ const DioLinkServerException (
28+ {@required this .response,
29+ @required Response parsedResponse,
30+ dynamic originalException})
31+ : super (
32+ parsedResponse: parsedResponse,
33+ originalException: originalException);
3534
3635 @override
3736 String toString () {
3837 final dynamic data = response.data;
3938 String plainResponse = "..." ;
4039 if (data is String ) {
41- plainResponse = data.length > 80 ? data.replaceRange (80 , data.length, "..." ) : data;
40+ plainResponse =
41+ data.length > 80 ? data.replaceRange (80 , data.length, "..." ) : data;
4242 }
4343 return "DioLinkServerException(originalException: $originalException , status: ${response .statusCode }, response: ${parsedResponse ?? plainResponse }" ;
4444 }
0 commit comments