expressionFunctionBody2 abstract method
ExpressionFunctionBody
expressionFunctionBody2({
- Token? keyword,
- Token? star,
- required Token functionDefinition,
- required Expression expression,
- Token? semicolon,
Returns a newly created function body consisting of an expression.
The keyword
can be null
if the function body is not an async function
body. The star
can be null
if there is no star following the keyword
(and must be null
if there is no keyword).
Implementation
ExpressionFunctionBody expressionFunctionBody2({
Token? keyword,
Token? star,
required Token functionDefinition,
required Expression expression,
Token? semicolon,
});