onDisconnect property Null safety

Function? onDisconnect
read / write

Implementation

Function? onDisconnect;