body method

Widget body(
  1. ThreadResponse res
)

Implementation

Widget body(ThreadResponse res) {
  ThreadTL tl = ThreadTimeline();
  if (res.thread.parentMap != null) {
    tl.setParent(res.thread.parent.post);
  }
  tl.setPost(res.thread.post);
  if (res.thread.replyList != null) {
    tl.setReplies(res.thread.replies);
  }
  return SingleChildScrollView(child: Column(children: tl.build(context)));
}