network_client
With the network_client brick, you can generate a fully functional network client with ease - no fuss, no headaches. Say goodbye to the tedious process of writing boilerplate code for network clients in your Dart/Flutter projects.
Built using the http
package, the network_client brick provides a reliable and efficient solution for streamlining your API requests and responses.
Plus, this brick also generates the test files that cover 100% files of the network_client.
You have the flexibility to generate your network client code anywhere in your codebase, the choice is your. Only one command to generate your network client and test file, and start building! It's that easy.
Usage š
mason make network_client
Output š¦
Generated network
folder:
.
āāā network
ā āāā errors
ā ā āāā http_error.dart
ā āāā network_client.dart
ā āāā network_client_impl.dart
āāā ...
This brick also generates the test classes under the test
folder.
test
āāā commons
ā āāā network
ā āāā errors
ā ā āāā http_error_test.dart
ā āāā network_client_test.dart
āāā ...