ifElement abstract method
IfElement
ifElement({
- required Token ifKeyword,
- required Token leftParenthesis,
- required Expression condition,
- required Token rightParenthesis,
- required CollectionElement thenElement,
- Token? elseKeyword,
- CollectionElement? elseElement,
Returns a newly created if element that can be part of a list, map or set literal.
Implementation
IfElement ifElement(
{required Token ifKeyword,
required Token leftParenthesis,
required Expression condition,
required Token rightParenthesis,
required CollectionElement thenElement,
Token? elseKeyword,
CollectionElement? elseElement});