selectedMenuItemBuilder property

SelectedMenuItemBuilder? selectedMenuItemBuilder
final

A builder to customize the selected menu item.

If this callback is null, the selected menu item will be displayed as other items.

You should return the child from the builder wrapped with the widget that customize your item, i.e:

selectedMenuItemBuilder: (ctx, child) {
  return Container(
    color: Colors.blue,
    child: child,
  );
},

Implementation

final SelectedMenuItemBuilder? selectedMenuItemBuilder;