stubResult method

void stubResult(
  1. String location,
  2. Object? result
)

Makes a push to location complete right away with result, as if the pushed page had popped with it.

Implementation

void stubResult(String location, Object? result) =>
    _results[location] = result;