Skip to content

Commit

Permalink
fix: fix error testing
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwang committed Jul 1, 2024
1 parent 0c2c05d commit 8f4f6a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions example/lib/auth_client.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:dio/dio.dart';
import 'package:retrofit/error_logger.dart';
import 'package:retrofit/retrofit.dart';

part 'auth_client.g.dart';
Expand Down
3 changes: 2 additions & 1 deletion example/lib/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'dart:io';
import 'package:dio/dio.dart' hide Headers;
import 'package:http_parser/http_parser.dart' show MediaType;
import 'package:json_annotation/json_annotation.dart';
import 'package:retrofit/error_logger.dart';
import 'package:retrofit/retrofit.dart';
import 'package:retrofit_example/api_result.dart';

Expand Down Expand Up @@ -180,7 +181,7 @@ abstract class RestClient {
Future<String> postFile({@Body() required File file});

@GET('')
Future<String> testCustomOptions(@DioOptions() Options options);
Future<String> testCustomOptions(@DioOptions() Options custom);

@GET('/cancel')
Future<String> cancelRequest(@CancelRequest() CancelToken cancelToken);
Expand Down

0 comments on commit 8f4f6a4

Please sign in to comment.