onProgress method
Register a handler for progress updates from the server (the 2.x form).
The handler is called with the notification's progressToken (as a
string), its progress and its message ('' when absent). Use
onProgressNotification for total and _meta.
Implementation
void onProgress(
Function(String progressToken, double progress, String message) handler,
) {
onProgressNotification((p) =>
handler('${p.progressToken}', p.progress.toDouble(), p.message ?? ''));
}