Event class

The class that contains the information about an event

Annotations

Constructors

Event({String type, String cid, String connectionId, DateTime createdAt, OwnUser me, User user, Message message, int totalUnreadCount, int unreadChannels, Reaction reaction, bool online, EventChannel channel, Member member})
Constructor used for json serialization
Event.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

channel EventChannel
The channel sent with the event
final
cid String
The channel cid to which the event belongs
final
connectionId String
The connection id in which the event has been sent
final
createdAt DateTime
The date of creation of the event
final
hashCode int
The hash code for this object. [...]
read-only, inherited
isLocal bool
True if the event is generated by this client
read / write
me OwnUser
User object of the health check user
final
member Member
The member sent with the event
final
message Message
The message sent with the event
final
online bool
Online status
final
reaction Reaction
The reaction sent with the event
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
totalUnreadCount int
The number of unread messages for current user
final
type String
The type of the event EventType contains some predefined constant types
final
unreadChannels int
User total unread channels
final
user User
User object of the current user
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Serialize to json
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited