follow static method

Future<int> follow(
  1. FollowQuery query
)

Follow a community entity, like topic or user.

query Query parameter.

Implementation

static Future<int> follow(FollowQuery query) {
  return NativeBridge.async('Communities.follow', jsonEncode(query.toJSON()))
      .then((result) {
    return jsonDecode(result)['result'];
  });
}