RouteData constructor
RouteData({})
Object that holds information about the active route.
Implementation
RouteData({
required this.path,
required this.location,
required this.queryParams,
required this.pathParams,
required this.arguments,
required bool pathEndsWithSlash,
required List<RouteData> redirectedFrom,
required String subLocation,
required this.navigatorKey,
}) : _pathEndsWithSlash = pathEndsWithSlash,
_redirectedFrom = redirectedFrom {
if (queryParams.isEmpty) {
uri = Uri(path: subLocation);
} else {
uri = Uri(path: subLocation, queryParameters: queryParams);
}
}