EasyApi class

A high-level static wrapper for comprehensive networking.

EasyApi integrates caching, retries, and clean response mapping.

Constructors

EasyApi()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

get<T>(String path, {Map<String, dynamic>? queryParameters, bool useCache = true, Duration? ttl, T fromJson(dynamic)?}) Future<ApiResponse<T>>
Performs a GET request with optional caching.
init({String? baseUrl, List<Interceptor>? interceptors, int maxRetries = 3}) → void
Initializes EasyApi with custom settings.
post<T>(String path, {dynamic data, T fromJson(dynamic)?}) Future<ApiResponse<T>>
Performs a POST request.