Route constructor

Route({
  1. required String id,
  2. required String path,
  3. Method method = Method.get,
  4. Simulated? simulated,
})

path : Relative to root

Example:

Route(id: 'location.search',
path: 'location/search/{location}?lang={language}&&country={country}',
method: Method.get);

Implementation

Route(
    {required this.id,
    required this.path,
    this.method = Method.get,
    this.simulated});