replaceInRouteName property

String? replaceInRouteName
final

Auto generated route names can be a bit long with the Route suffix e.g ProductDetailsPage would be ProductDetailsPageRoute

You can replace some relative parts in your route names by providing a replacement in the follow pattern whatToReplace,replacement what to replace and the replacement should be separated with a comma , e.g 'Page,Route' so ProductDetailsPage would be ProductDetailsRoute

defaults to 'Page|Screen,Route', ignored if a route name is provided.

Implementation

final String? replaceInRouteName;