onOpen method Null safety

void onOpen(
  1. OpenSocket fn
)

Implementation

void onOpen(OpenSocket fn) {
  socketNotifier!.open = fn;
}