PusherChannelsReadEvent class
A data class represents readable Pusher Channels events.
Usually, they are received from PusherChannelsClient.eventStream.
See also:
- PusherChannelsEvent
PusherChannelsReadEventMixin
- Mixed-in types
- Implementers
Constructors
-
PusherChannelsReadEvent({required Map<
String, dynamic> rootObject}) - PusherChannelsReadEvent.fromReadable(PusherChannelsReadEventMixin event)
-
An adapter to create an instance from other readables.
factory
Properties
- channelName → String?
-
no setter
- data → dynamic
-
Extracts event data from the
rootObject
under the PusherChannelsEvent.dataKey key.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Extracts an event name from the
rootObject
under the PusherChannelsEvent.eventNameKey key.no setterinherited -
rootObject
→ Map<
String, dynamic> -
Appears to be an object that may have following structure:
{event: String?, channel: String?, data: dynamic, user_id: String?, }
final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userId → String?
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tryGetDataAsMap(
) → Map< String, dynamic> ? -
Tries to deserialize and return the
data
as Map withsafeMessageToMapDeserializer
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
tryParseFromDynamic(
dynamic message) → PusherChannelsReadEvent?