Members class

Represents a collection of members of a presence channel.

Annotations
  • @JS()

Constructors

Members()
factory

Properties

count num
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
me ↔ dynamic
getter/setter pair
members ↔ dynamic
getter/setter pair
myID ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addMember(dynamic memberData) → dynamic
Adds a new member to the collection. For internal use only.
each(Function callback) → dynamic
Calls back for each member in unspecified order.
get(String id) → dynamic
Returns member's info for given id. Resulting object containts two fields - id and info.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSubscription(dynamic subscriptionData) → dynamic
Handles subscription data. For internal use only.
removeMember(dynamic memberData) → dynamic
Adds a member from the collection. For internal use only.
reset() → dynamic
Resets the collection to the initial state. For internal use only.
setMyID(String id) → dynamic
Updates the id for connected member. For internal use only.
toString() String
A string representation of this object.
inherited

Operators

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