postCached<T> abstract method
Gets a cached response from a POST request to the specified path
.
Implementation
Future<Result<T>> postCached<T>(
String path, {
data, // The data to be sent in the body of the request
Map<String, dynamic>? queryParameters, // Optional query parameters
FutureOr<T> Function(dynamic data)? onSuccess, // Callback on success
FutureOr<T> Function(dynamic data)? onError, // Callback on error
});