onProgress property

void Function(ProgressNotificationParams progress)? onProgress
final

Receives the server's notifications/progress for this request. Setting it sends a progressToken, which is how a server knows to report progress; each notification also restarts the timeout (bounded by Client.maxRequestTimeout).

Implementation

final void Function(ProgressNotificationParams progress)? onProgress;