widgets property

List<Widget> get widgets

Implementation

List<Widget> get widgets {
  List<Widget> list = [
    padding10(Row(children: [cancel, const Spacer(), submit])),
    const Divider(height: 0.5),
    form(context),
    SizedBox(height: _height, child: Row(children: selects))
  ];
  if (widget.postType == PostType.reply) {
    record = reply;
    list.insertAll(2, replyPost(context, widget.post!));
  }
  if (widget.postType == PostType.quote) {
    record = quote;
    list.addAll(quotePost(context, widget.post!));
  }
  return list;
}