getActivity static method

Future<GetSocialActivity> getActivity(
  1. String id
)

Get a single activity.

id Activity id.

Implementation

static Future<GetSocialActivity> getActivity(String id) {
  return NativeBridge.async('Communities.getActivity', id)
      .then((result) => GetSocialActivity.fromJSON(jsonDecode(result)));
}