closeEndDrawer method Null safety
Closes Scaffold.endDrawer if it is currently opened.
See Scaffold.of for information about how to obtain the ScaffoldState.
Implementation
void closeEndDrawer() {
if (hasEndDrawer && isEndDrawerOpen) {
_endDrawerKey.currentState!.close();
}
}