Skip to main content

fetchAndAddPlugins method

void fetchAndAddPlugins(

  1. [[BuildContext] context]

)

Dynamically adds BottomNavigationBarItems in BottomNavigationBar.

by mapping over the data received from the server.

params:

  • context: its the same context you use everywhere in the flutter framework refer flutter docs for more info.

returns: None

Implementation

void fetchAndAddPlugins(
BuildContext context,
)
  1. talawa
  2. main_screen_view_model
  3. MainScreenViewModel
  4. fetchAndAddPlugins method
MainScreenViewModel class