repost method

ListTile repost(
  1. BuildContext context
)

Implementation

ListTile repost(BuildContext context) {
  return ListTile(
    leading: const Icon(Icons.repeat),
    title: Text(tr('reaction.repost')),
    onTap: () async {
      Tuple2 res = await plugin.repost(post.uri, post.cid);
      reaction.count += 1;
      reaction.uri = res.item2['uri'];
      Navigator.pop(context);
    },
  );
}