Migration guide for RouteSettings copyWith

Summary

Context

Description of change

Migration guide

Timeline

References

Summary

The RouteSettings.copyWith method is removed, and apps that use
it need to use the constructor to create a new RouteSettings
instance instead.

Context

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

Description of change

RouteSettings.copyWith was removed

Migration guide

Code before migration:

RouteSettings

newSettings

oldSettings

copyWith

name:

'new name'

);

Code after migration:

RouteSettings

newSettings

RouteSettings