getPost method
Implementation
void getPost(String postId, AmityPost initialPostData) {
amityPost = initialPostData;
AmitySocialClient.newPostRepository()
.getPost(postId)
.then((AmityPost post) {
amityPost = post;
}).onError<AmityException>((error, stackTrace) async {
log(error.toString());
await AmityDialog()
.showAlertErrorDialog(title: "Error!", message: error.toString());
});
}