renderChildrenView method

dynamic renderChildrenView()

Implementation

renderChildrenView() {
  if (mStyles.display == 'list') {
    return ListView.builder(
      physics: NeverScrollableScrollPhysics(),
      itemBuilder: (BuildContext context, int index) => children[index],
      shrinkWrap: true,
      itemCount: children.length,
    );
  }
  Map childData = getChildren(children);
  if (childData['mAbsolute'].length == 0) {
    if (childData['mTree'].length > 0) {
      return renderChildreTree(childData['mTree']);
    } else {
      return renderEmpty();
    }
  } else {
    return renderStack([
      renderContainer(renderChildreTree(childData['mTree'])),
      ...(childData['mAbsolute'])
    ]);
  }
}