AppwinCommunityEvent class sealed

Something the current member did in Community, reported through AppwinCommunity.events.

Only the member's own actions, and only once the server has accepted them: an optimistic update that fails is never reported, and other members' activity never goes through here. Mirrors AppwinCommunityEvent in the iOS and Android SDKs.

AppwinCommunity.instance.events.listen((event) {
  switch (event) {
    case AppwinCommunityPostCreated():
      rewards.grant(Reward.firstPost);
    default:
      break;
  }
});
Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMap(Map<Object?, Object?>? map) → AppwinCommunityEvent?
Parses what the native side sends over the event channel.