Created
March 21, 2022 06:49
-
-
Save dev4jam/0ea7d2cc76a1dfea8de43fa6dea26391 to your computer and use it in GitHub Desktop.
Prepared network request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class _PreparedNetworkRequest<Model> { | |
const _PreparedNetworkRequest( | |
this.request, | |
this.parser, | |
this.dio, | |
this.headers, | |
this.onSendProgress, | |
this.onReceiveProgress, | |
); | |
final NetworkRequest request; | |
final Model Function(Map<String, dynamic>) parser; | |
final Dio dio; | |
final Map<String, dynamic> headers; | |
final ProgressCallback? onSendProgress; | |
final ProgressCallback? onReceiveProgress; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment