selectDrawer method

void selectDrawer(
  1. GestureTapCallback onTap
)

Implementation

void selectDrawer(GestureTapCallback onTap) async {
  final position = await Future<int>.value(onTapFunctions.indexOf(onTap));
  _currentDrawerSelection = position;
  notifyListeners();
  onTap();
}