The below code works fine but doesn\'t hide snack bar on user signout. It invokes the code _scaffoldKey.currentState.hideCurrentSnackBar(); but doesn\'t hide th
_scaffoldKey.currentState.hideCurrentSnackBar();