isEOFPacket method

bool isEOFPacket()

Implementation

bool isEOFPacket() {
  final _payload = payload;

  if (_payload is MySQLPacketEOF) {
    return true;
  }

  return _payload is MySQLPacketOK &&
      _payload.header == 0xfe &&
      payloadLength < 9;
}