vexana 1.0.0 copy "vexana: ^1.0.0" to clipboard
vexana: ^1.0.0 copied to clipboard

outdated

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.

Vexana-Game

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 #

License

2020 created for @VB10

Youtube Channel #


Youtube

279
likes
0
pub points
90%
popularity

Publisher

verified publishervb10.dev

flutter network helper project..

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter

More

Packages that depend on vexana