postStreamed<T> abstract method
Streams the result of a POST request to the specified path
.
Implementation
Stream<Result<T>> postStreamed<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
RestApiClientRequestOptions? options, // Request options
Duration?
cacheLifetimeDuration, // Lifetime of cached data, defaults to CacheOptions.cacheLifetimeDuration
});