findByWidget method

NavigationItemState? findByWidget(
  1. Widget widget
)

Implementation

NavigationItemState? findByWidget(Widget widget) {
  return _contentBuilders.keys
      .where((key) => key.widget == widget)
      .firstOrNull;
}