onClose method

void onClose(
  1. void callback()
)

Implementation

void onClose(void callback()) => _conn.onClose.listen((e) {
      callback();
    });