I hava a flutter app which uploads files to an express server using tus protocol, every thing works just fine except when I want to pause the uploading it throws an exception that I can't figure out why.
This is the exception it throws
type '() => Null' is not a subtype of type '(() => FutureOr<Response>)?' of 'onTimeout'