openEndDrawer method

void openEndDrawer()

Opens the end side Drawer (if any).

If the scaffold has a non-null TransparentScaffold.endDrawer, this function will cause the end side drawer to begin its entrance animation.

Normally this is not needed since the TransparentScaffold automatically shows an appropriate IconButton, and handles the edge-swipe gesture, to show the drawer.

To close the drawer, use either TransparentScaffoldState.closeEndDrawer or Navigator.pop.

See TransparentScaffold.of for information about how to obtain the TransparentScaffoldState.

Implementation

void openEndDrawer() {
  if (_drawerKey.currentState != null && _drawerOpened.value) {
    _drawerKey.currentState!.close();
  }
  _endDrawerKey.currentState?.open();
}