components property

List<String> get components

The field names of this path, one per nesting level: ['address', 'city'] for 'address.city'.

Implementation

List<String> get components => List<String>.unmodifiable(<String>[
  for (int i = 0; i < _internalPath.length; i++) _internalPath.getSegment(i),
]);