target property Null safety

AstNode? target

Return the node to which this continue statement is continuing.

This will be either a Statement (in the case of continuing a loop), a SwitchMember (in the case of continuing from one switch case to another), or null if the AST has not yet been resolved or if the target could not be resolved. Note that if the source code has errors, the target might be invalid (e.g. the target may be in an enclosing function).

Implementation

AstNode? get target;
void target=(AstNode? node)
@Deprecated('Clients should not build AST manually')

Set the node to which this continue statement is continuing to the given node.

Implementation

@Deprecated('Clients should not build AST manually')
set target(AstNode? node);