buildContent method

Widget buildContent(
  1. int index
)

Implementation

Widget buildContent(int index) {
  NavigationItemState? item = findByWidget(widget.children[index]);
  final theme = Theme.of(context);
  final scaling = theme.scaling;
  if (item != null) {
    return Data<NavigationMenuState>.boundary(
      child: Padding(
        padding: const EdgeInsets.all(12.0) * scaling,
        child: _contentBuilders[item]!(context),
      ),
    );
  }
  return Container();
}