shelf
shelf copied to clipboard
Making the response method consistent
The methods ok, unauthorized, forbidden, notFound first have body as a parameter, and then the other parameters must be defined,
The methods internalServerError and badRequest are different, all parameters are in {}
What you might be able to do is to change the parameter definition of the anadere method?
- Thanks for your contribution! Please replace this text with a description of what this PR is changing or adding and why, list any relevant issues, and review the contribution guidelines below.
- [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:
- See our contributor guide for general expectations for PRs.
- Larger or significant changes should be discussed in an issue before creating a PR.
- Contributions to our repos should follow the Dart style guide and use
dart format
. - Most changes should add an entry to the changelog and may need to rev the pubspec package version.
- Changes to packages require corresponding tests.
Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.