arrayIndex property

  1. @override
int? get arrayIndex
override

The index within the immediate parent array, if there is one.

This is non-null exactly when isArrayMember is true, including for elements of a TypedLogicArray. A field whose immediate parent is a non-array LogicStructure has no arrayIndex, even when that structure has an array ancestor.

Implementation

@override
int? get arrayIndex => _arrayIndex;