pushSegments abstract method

  1. @Deprecated('Use toSegments instead')
void pushSegments(
  1. List<String> segments, {
  2. Map<String, String> queryParameters = const {},
  3. String? hash,
  4. Map<String, String> historyState = const {},
})

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 {},
});