openModalWithArgs static method
Stores args in NavigationStorage and opens the modal; readable via
getModalArgs, cleared automatically when the modal closes.
Implementation
static void openModalWithArgs(
GoRouter router,
NavigationStorage storage,
String modalId,
dynamic args,
) {
storage.modalArgs[modalId] = args;
openModal(router, modalId);
}