CommunitiesResource class
The communities an account can post into.
Reach it as client.communities.
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
-
add(
String accountId, String communityId, {String? name}) → Future< Community> - Links a community to the account by its platform id, for the case where search and sync do not surface it.
-
list(
String accountId) → Future< List< Community> > - Returns the communities linked to an account.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String accountId, int id) → Future< void> -
Unlinks a community.
idisCommunity.id, not the platform's own id. -
search(
String accountId, String query) → Future< List< CommunitySearchResult> > - Looks a community up on the platform without linking it.
-
sync(
String accountId) → Future< List< Community> > - Pulls the account's communities from the platform and stores them.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited