openModalAsyncWithArgs<T> static method

Future<T?> openModalAsyncWithArgs<T>(
  1. GoRouter router,
  2. NavigationStorage storage,
  3. String modalId,
  4. dynamic args,
)

Like openModalWithArgs, but returns a Future with the close result.

Implementation

static Future<T?> openModalAsyncWithArgs<T>(
  GoRouter router,
  NavigationStorage storage,
  String modalId,
  dynamic args,
) {
  storage.modalArgs[modalId] = args;
  return openModalAsync<T>(router, storage, modalId);
}