openRightDrawer function

void openRightDrawer({
  1. required GlobalKey<ScaffoldState> scaffoldKey,
})

Open drawer from right

Implementation

void openRightDrawer({required GlobalKey<ScaffoldState> scaffoldKey}) {
  scaffoldKey.currentState!.openEndDrawer();
}