closeDrawer method

void closeDrawer(
  1. BuildContext context
)

Implementation

void closeDrawer(BuildContext context) {
  if (Scaffold.of(context).isDrawerOpen) {
    Scaffold.of(context).openEndDrawer();
  }
}