parent method

FieldPath? parent()
inherited

Returns the path of the parent node.

Implementation

T? parent() {
  if (segments.isEmpty) return null;

  return _construct(segments.sublist(0, segments.length - 1));
}