copy method

StompFrame copy()

Creates a copy of this frame

Implementation

StompFrame copy() {
  return StompFrame(
    command: command,
    headers: Map<String, String>.from(headers),
    body: body != null ? Uint8List.fromList(body!) : null,
  );
}