typedef ToPathCallback = String? Function( int index, String base, String path, List<String> routes, );