onError method Null safety

void onError(
  1. CloseSocket fn
)

Implementation

void onError(CloseSocket fn) {
  socketNotifier!.addErrors(fn);
}