onConnect property Null safety

Function? onConnect
read / write

Implementation

Function? onConnect;