Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
46 lines (28 sloc) 958 Bytes
title description
Migration guide for RouteSettings copyWith
Removal of RouteSettings copyWith and how to migrate


RouteSettings.copyWith was removed, and existing apps needed to use the constructor to create a new RouteSettings instead.


With the introduction of Page class, the RouteSettings.copyWith was no longer a viable API.

Description of change

RouteSettings.copyWith was removed

Migration guide

Existing apps:

RouteSettings newSettings = oldSettings.copyWith(name: 'new name');

After migrations:

RouteSettings newSettings = RouteSettings(name: 'new name', arguments: oldSettings.arguments);


Landed in version: 3.5.0-9.0.pre-137-gc6f6095acd
In stable release: TBA


Relevant PRs: