onResponse property

FutureOr<void> Function(int statusCode, Map<String, String> headers, Model model)? onResponse
final

Hook invoked once the response headers are in, before the SSE body is consumed.

Implementation

final FutureOr<void> Function(
  int statusCode,
  Map<String, String> headers,
  Model model,
)?
onResponse;