childrenArgument property

NamedExpression? get childrenArgument

The named expression representing the children argument, or null if there is none.

Implementation

NamedExpression? get childrenArgument => argumentList.arguments
    .whereType<NamedExpression>()
    .firstWhereOrNull((argument) => argument.isChildrenArgument);