UrlState.fromSegments constructor

UrlState.fromSegments(
  1. List<RouteMatch> routes, {
  2. bool shouldReplace = false,
})

Implementation

factory UrlState.fromSegments(
  List<RouteMatch> routes, {
  bool shouldReplace = false,
}) {
  return UrlState(
    _buildUri(routes),
    routes,
    shouldReplace: shouldReplace,
  );
}