pushSegments abstract method
Pushes a new url based on url segments
For example: pushSegments('home', 'bob'
) ~ push('/home/bob')
The advantage of using this over push is that each segment gets encoded.
For example: pushSegments('home', 'bob marley'
) ~ push('/home/bob%20marley')
Also see:
- push to see want happens when you push a new url
Implementation
@Deprecated('Use toSegments instead')
void pushSegments(
List<String> segments, {
Map<String, String> queryParameters = const {},
String? hash,
Map<String, String> historyState = const {},
});