anchor.diff:      }
     }
   
  -  void setHandlers({read, write, error, closed, destroyed}) {
  -    eventHandlers[readEvent] = read;
  -    eventHandlers[writeEvent] = write;
  -    eventHandlers[errorEvent] = error;
  -    eventHandlers[closedEvent] = closed;
  -    eventHandlers[destroyedEvent] = destroyed;
  +  void setHandlers(
  +      {void Function()? read,
  +      void Function()? write,
  +      void Function(Object e, StackTrace? st)? error,
  +      void Function()? closed,
  +      void Function()? destroyed}) {
  +    readEventHandler = read;
  +    writeEventHandler = write;
  +    errorEventHandler = error;
  +    closedEventHandler = closed;
  +    destroyedEventHandler = destroyed;
     }
   
     void setListening({bool read = true, bool write = true}) {
  
positive.code:       if (isClosing) return;
        if (!sendWriteEvents) return;
        sendWriteEvents = false;
        var handler = eventHandlers[writeEvent];
        if (handler == null) return;
        handler();
      }
  
negative.code:   Completer closeCompleter = new Completer.sync();
  
    // Handlers and receive port for socket events from the event handler.
    void Function()? readEventHandler;
    void Function()? writeEventHandler;
    void Function(Object e, StackTrace? st)? errorEventHandler;
    void Function()? closedEventHandler;
    void Function()? destroyedEventHandler;
  
    RawReceivePort? eventPort;
    bool flagsSent = false;
  
  