ChannelReadEvent class
An implementation of PusherChannelsReadEvent that can be received from Channel.bind.
- Inheritance
-
- Object
- PusherChannelsReadEvent
- ChannelReadEvent
Constructors
-
ChannelReadEvent.forSubscriptionError(Channel<
ChannelState> channel, {required String type, required String errorMessage}) -
factory
-
ChannelReadEvent.fromPusherChannelsReadEvent(Channel<
ChannelState> channel, PusherChannelsReadEvent readEvent) -
factory
-
ChannelReadEvent.internalCreate({required String name, required Channel<
ChannelState> channel, required Map<String, dynamic> data}) -
factory
Properties
-
channel
→ Channel<
ChannelState> -
final
- channelName → String
-
no setteroverride
- 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?, }
finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userId → String?
-
no setterinherited
Methods
-
copyWithName(
String name) → ChannelReadEvent -
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