Channel class
A channel we are in.
Constructors
-
Channel({required String name, required String? topic, required String? topic_by, required Map<
String, String?> modes, required Map<CaseFolded, Membership> members, required MessageLog log, required int unread, required int mentions, required Map<String, String> metadata, required String? read_marker, required List<String> typing, required Map<String, String?> named_modes}) -
const
-
Channel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- log → MessageLog
-
What was said.
final
-
members
→ Map<
CaseFolded, Membership> -
Who is in it.
final
- mentions → int
-
Unread messages that mention us.
final
-
metadata
→ Map<
String, String> -
Metadata the server holds, such as
display-name,color,avatarandbot. These are plaindraft/metadata-2keys with no vendor prefix, despite everything else Obby adds being namespaced.final -
modes
→ Map<
String, String?> -
Channel modes currently set, with their arguments.
final
- name → String
-
The name as the server spells it.
final
-
named_modes
→ Map<
String, String?> -
Modes by their name rather than their letter, from
draft/named-modes. A letter means nothing without the server telling you what it does, and two servers spell the same feature differently. The names are stable, so this is what a user interface should show and what a setting should be keyed by.final - read_marker → String?
-
The read marker timestamp the server last confirmed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topic → String?
-
The topic, when one is set.
final
- topic_by → String?
-
Who set the topic and when.
final
-
typing
→ List<
String> -
Who is composing a message here right now.
final
- unread → int
-
Messages since the last read marker.
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