Mention class

Mention, generated from its schema.

Constructors

Mention({required String participant, String? displayName, required int start, required int length})
const
Mention.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

displayName → DigestMultibase?
OPTIONAL. Human-readable name the source platform supplied for the participant. A non-authoritative rendering hint — never used for identity. Absent when the platform exposes no name in the mention.
final
hashCode → int
The hash code for this object.
no setterinherited
length → int
Source-platform native length of the sentinel span in text. Advisory; see start.
final
participant → String
Opaque, bridge-issued handle for the mentioned participant. MUST NOT be a raw platform address; like conversationId it carries no platform-native identifier (phone number, UUID, member id) upstream.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → int
Source-platform native start offset of the sentinel span in text. Advisory: offset units differ across platforms, so the authoritative binding is positional (Nth U+FFFC → Nth mention), not by offset.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

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