onDrawerItemClicked method

void onDrawerItemClicked(
  1. String name
)

Implementation

void onDrawerItemClicked(String name){
  Navigator.pop(context);
  MyToast.show(name+" Selected", context);
}