onDisconnect property
void Function()?
onDisconnect
getter/setter pair
Callback invoked when this session's connection is closed. Used by FtpServer to remove the session from its active list.
Implementation
void Function()? onDisconnect;