@override bool isClosedImpl() { final nativeConnection = this.nativeConnection; return nativeConnection is Connection && !nativeConnection.isOpen; }