copyWith method

UrlState copyWith({
  1. List<RouteMatch>? segments,
  2. Uri? uri,
  3. bool? replace,
})

Implementation

UrlState copyWith({
  List<RouteMatch>? segments,
  Uri? uri,
  bool? replace,
}) {
  return UrlState(
    uri ?? this.uri,
    segments ?? this.segments,
    shouldReplace: replace ?? shouldReplace,
  );
}