replace method
Replaces the provided from with the specified to in the routes.
Implementation
void replace(String from, String to) {
Log.debug('replace($from, $to)', '$runtimeType');
routes.value = routes.map((e) => e.replaceAll(from, to)).toList();
}