pushModal static method

void pushModal({
  1. required void onPop(),
})

Pushes a new modal to the navigation state.

Implementation

static void pushModal({required final void Function() onPop}) =>
    _state!._pushModal(onPop: onPop);