onConnect property Null safety

(dynamic Function?(C)?) onConnect
final

Implementation

final Function(C)? onConnect;