plus<TT> method

JsonPath<TT> plus<TT>(
  1. JsonPath<TT> path
)

Implementation

JsonPath<TT> plus<TT>(JsonPath<TT> path) {
  final self = this.self;
  if (self.isEmpty) {
    return path;
  }
  if (path.self.isEmpty) {
    return this.cast();
  }
  return JsonPath<TT>._(this.self.segments + path.self.segments, this.self.path + path.self.path);
}