MainNavigationButton constructor

const MainNavigationButton({
  1. Key? key,
  2. required String navigation,
  3. required Widget builder(
    1. void navFunction()
    ),
})

navigation refers to the target main navigation path to take.

the function provided in builder is the function that fires the corresponding event up the widget tree.

Implementation

const MainNavigationButton(
    {Key? key, required this.navigation, required this.builder})
    : super(key: key);