pushSegments 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:
- to 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 {},
Map<String, String> historyState = const {},
}) =>
toSegments(
segments,
queryParameters: queryParameters,
historyState: historyState,
);