disconnect method Null safety

  1. @protected
void disconnect(
  1. {bool auto = false}
)

User requested or auto disconnect disconnection

Implementation

@protected
void disconnect({bool auto = false}) {
  if (auto) {
    _disconnect();
  } else {
    onDone();
  }
}