finish method
Invoked when a session is terminated.
This method is invoked when the session is ended. The endReason
indicates why the session has ended.
This base implementation does nothing. Subclasses of Session can override this method, if they want to be notified of when the session is terminated.
This instance method is intended to be overridden by subclasses of the Session class.
Implementation
Future finish(SessionTermination endReason) async {
// do nothing
}