forElement abstract method

ForElement forElement({
  1. Token? awaitKeyword,
  2. required Token forKeyword,
  3. required Token leftParenthesis,
  4. required ForLoopParts forLoopParts,
  5. required Token rightParenthesis,
  6. required CollectionElement body,
})

Returns a newly created for element that can be part of a list, map or set literal.

Implementation

ForElement forElement(
    {Token? awaitKeyword,
    required Token forKeyword,
    required Token leftParenthesis,
    required ForLoopParts forLoopParts,
    required Token rightParenthesis,
    required CollectionElement body});