push method

void push(
  1. Page page
)

Pushes the given page to the top of the stack.

Implementation

void push(Page page) {
  emit([
    ...state,
    page,
  ]);
}