RawMessage class

A parsed protocol line. The types are owned rather than borrowed from the input. A borrowed Message<'a> would parse faster, but every consumer of this crate reaches it across a language boundary that cannot carry a Rust lifetime, so the copy has to happen somewhere and here is the only place it happens once.

Constructors

RawMessage({required MessageTags tags, required MessageSource? source, required String command, required List<String> params})
const
RawMessage.fromJson(Map<String, dynamic> json)
factory

Properties

command String
The command or three-digit numeric, as it arrived. Commands are case-insensitive on the wire, so compare with `Message::is` rather than ==.
final
hashCode int
The hash code for this object.
no setterinherited
params List<String>
The parameters, with the trailing parameter last and its : removed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source MessageSource?
The source, when the line carried one.
final
tags MessageTags
The tag section, empty when the line carried no @.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited