AppwinCommunityUser class

Community profile as the native SDK returns it.

Dart mirror of Swift's CommunityUser. It carries only what the host app might want to display itself (a badge, a counter in a menu); the rest lives in the native UI.

Constructors

AppwinCommunityUser({required String id, required String nickname, required bool isAnonymous, required int postCount, required int commentCount, String? avatarUrl, String? bio})
Builds a profile. The SDK decodes them for you; this is here for tests.
const

Properties

avatarUrl String?
Profile picture, absent until one is set.
final
bio String?
Short self-description, absent until the member writes one.
final
commentCount int
Comments written.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Community member id, stable across sessions. Not your externalId.
final
isAnonymous bool
true while neither the host app nor the member has supplied an identity.
final
nickname String
Display name, either set through setUser or picked by the member.
final
postCount int
Posts written, for a counter in your own UI.
final
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.
override

Operators

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

Static Methods

fromMap(Map map) AppwinCommunityUser
Rebuilt from a method channel map.