withParams method

String withParams(
  1. Map<String, dynamic> args
)

Get the path of the route with arguments.

Implementation

String withParams(Map<String, dynamic> args) {
  String path = this.$1;
  args.forEach((key, value) {
    path = path.replaceAll("{$key}", value.toString());
  });
  return path;
}