RouteData class

It contains information about the current route being created.

location represents the current location being build (path + queries). E.g.: /path/abc?tab=0

values is a map containing all values extracted from location variables. E.g.:

  • Given the route template: /path/{var1}/abc/?{?tab}
  • And the following location: /path/post_a/abc/?tab=0
  • values will contains: {'var1': 'post_a', 'tab': 0}

Constructors

RouteData({required String location, Map<String, dynamic> values = const {}})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
location String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Map<String, dynamic>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited