onMessage method Null safety

void onMessage(
  1. MessageSocket fn
)

Implementation

void onMessage(MessageSocket fn) {
  socketNotifier!.addMessages(fn);
}