Skip to content

Commit

Permalink
Fixed Missing concreate implementation of CustomNetworkManager
Browse files Browse the repository at this point in the history
  • Loading branch information
mysCod3r committed Sep 2, 2024
1 parent b8a9681 commit ae776ca
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/unit/network_manager_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,22 @@ class CustomNetworkManager extends INetworkManager<EmptyModel> {
}) {
return Future.value(Response<T>(requestOptions: RequestOptions()));
}

@override
Future<NetworkResult<R, EmptyModel>>
sendRequest<T extends INetworkModel<T>, R>(
String path, {
required T parseModel,
required RequestType method,
String? urlSuffix,
Map<String, dynamic>? queryParameters,
Options? options,
Duration? expiration,
data,
ProgressCallback? onReceiveProgress,
CancelToken? cancelToken,
bool isErrorDialog = false,
}) {
return Future.value(NetworkSuccessResult(const EmptyModel() as R));
}
}

0 comments on commit ae776ca

Please sign in to comment.