getTopic static method

Future<Topic> getTopic(
  1. String id
)

Get a single topic.

id Topic id.

Implementation

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