MockGoRouter constructor

MockGoRouter({
  1. String initialLocation = '/',
  2. Map<String, String> routes = const {},
})

Creates a mock that starts at initialLocation.

routes maps route names to path patterns, so the named methods such as goNamed can build locations.

Implementation

MockGoRouter({String initialLocation = '/', this.routes = const {}})
  : _stack = [_Entry(initialLocation)];