closeModal method
Removes modalId from the modal query parameter, dropping the
parameter entirely if it was the last one open.
Implementation
void closeModal(String modalId, {BuildContext? context}) {
final router = context != null ? GoRouter.of(context) : _getRouter();
NavigationUtils.closeModal(router, modalId);
}