LocationMatch<T> constructor

LocationMatch<T>({
  1. required Location location,
  2. Completer<T>? completer,
})

A match for a location, containing some extra context around the location.

Some locations need extra context when performing certain actions, for example, we might need the Completer when trying to pop the page.

Implementation

LocationMatch({
  required this.location,
  this.completer,
});