hideImmediate method
Implementation
void hideImmediate(BuildContext context, {int? id}) {
//reset back press handler
if (_currentCallback.length == 1 || id == null) {
ModalRoute.of(context)?.removeScopedWillPopCallback(onWillPop);
}
_hide(id);
}