PhoenixPresence class

Constructors

PhoenixPresence(PhoenixChannel? channel, {Map<String, dynamic>? opts})

Properties

caller ↔ _PresenceCallers
getter/setter pair
channel PhoenixChannel?
getter/setter pair
events PresenceEvents
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
inPendingSyncState → dynamic
no setter
joinRef String?
getter/setter pair
opts Map<String, dynamic>?
getter/setter pair
pendingDiffs List
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state Map<String, Map<String, dynamic>>?
getter/setter pair

Methods

list({Function? by = null}) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onJoin(dynamic callback(dynamic key, dynamic currentPresence, dynamic newPresence)) → dynamic
onLeave(dynamic callback(dynamic key, dynamic currentPresence, dynamic newPresence)) → dynamic
onSync(dynamic callback()) → dynamic
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

clone(dynamic object) → dynamic
syncDiff(dynamic currentState, dynamic diffs, dynamic onJoinCallback, dynamic onLeaveCallback) → dynamic
syncState(dynamic currentState, dynamic newState, dynamic onJoinCallback, dynamic onLeaveCallback) → dynamic