Skip to content
Permalink
82b22a7900
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

Summary

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

Context

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);

Timeline

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

References

Relevant PRs: