onTimeout property
Sets a callback that will be called when the session is timed out.
Calling this again will overwrite the previous value.
Implementation
@override
set onTimeout(void Function() callback) {
print(
'An onTimeout callback was set on a MockHttpSession, which will do nothing.');
}