defaultFlow<P extends Parameters, R> function
Future<R>
defaultFlow<P extends Parameters, R>({
- required Core core,
- required P params,
- required BodyDeserializer<
R> serializer,
A method which will be used to make the http request
from the given params
and return the response of the type
R
.
P
will always be a class which is the child of Parameters
and R
.
Implementation
Future<R> defaultFlow<P extends Parameters, R>({
required Core core,
required P params,
required BodyDeserializer<R> serializer,
}) async {
var fiber = Fiber(
action: () => _defaultFlow<P, R>(
params: params,
core: core,
serializer: serializer,
),
);
await fiber.run();
return fiber.future;
}