vexana 1.0.0 vexana: ^1.0.0 copied to clipboard
flutter network helper project..
vexana #
Vexana is easy use network proccess with dio. You can do dynamic model parse, base error model, timeout and many utitliy functions.
Getting Started 🔥 #
Let's talk use detail.
Network Manager 😎 #
Have a a lot options: baseurl, logger, interceptors, base model etc.
INetworkManager networkManager = NetworkManager(isEnableLogger: true, options: BaseOptions(baseUrl: "https://jsonplaceholder.typicode.com/"));
Model Parse ⚔️ #
You have give to first parse model, second result model. (Result model could be list, model or primitive)
final response =
await networkManager.fetch<Todo, List<Todo>>("/todos", parseModel: Todo(), method: RequestType.GET);
Network Model 🛒 #
You must be wrap model to INetoworkModel so we understand model has a toJson and toFrom properties.
class Todo extends INetworkModel<Todo>
Tasks #
- ✅ Example project
- ✅ Unit Test with json place holder
- ✅ Unit Test with custom api
- ❌ Make a unit test all layers.
- ❌ Cache Option
- ❌ Usage Utility
License #
2020 created for @VB10