MacosNavigation constructor

MacosNavigation({
  1. Key? key,
  2. required List<AdaptiveGroupDestination> groupDestinations,
})

Implementation

MacosNavigation({super.key, required this.groupDestinations})
    : assert(
        groupDestinations
                .expand((group) => group.destinations)
                .where(
                    (destination) => destination.showOnDrawerSidebar == true)
                .length >=
            2,
        'There must be at least 2 AdaptiveDestinations with showOnDrawerSidebar = true',
      );