buildList method

  1. @override
List<Widget> buildList(
  1. BuildContext context
)
override

构建菜单列表

Implementation

@override
List<Widget> buildList(BuildContext context) {
  List<Widget> children = [];
  for (int i = 0; i < childCount; i++) {
    children.add(builder(context, i));
  }
  return children;
}