Skip to content
pubscout

vexana

6.1.0, released 5 weeks ago by vb10.dev

Manage your network layer with dio, offering dynamic model parsing, caching, and refresh tokens.

WASM-ready
$ flutter pub add vexana
Source repository

What it does

Vexana simplifies network operations built on top of Dio. It provides dynamic model parsing, base error models, request cancellation, file uploads and downloads, token refresh handling, and response caching.

AI-written summary of version 6.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want a structured network layer built on top of Dio with built-in model parsing.
  • You need automated refresh token handling and request locking on auth failures.
  • You require response caching with file or shared preferences backing.

Skip it when

  • You prefer writing raw Dio code without wrapper classes or specific interfaces.
  • You use a fully generated networking client framework like Retrofit.

Strengths

  • Built-in token refresh mechanism that locks requests until tokens renew.
  • Built-in caching support with File and Shared Preferences options.
  • Structured result types using sealed classes via sendRequest.

Weaknesses

  • Requires wrapping response models with INetworkModel.
  • Tied specifically to the Dio client library.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Configure BaseOptions and NetworkManager with your base URL and optional error models.

INetworkManager networkManager = NetworkManager(
  isEnableLogger: true,
  options: BaseOptions(baseUrl: "https://jsonplaceholder.typicode.com/"),
);

final response = await networkManager.send<Todo, List<Todo>>(
  "/todos",
  parseModel: Todo(),
  method: RequestType.GET,
);

Alternatives

Packages that do the same job and could replace vexana.

Works with

Packages commonly used together with vexana: ones it builds on, ones built on it, and its own family.