BlockFunctionBodyImpl constructor
BlockFunctionBodyImpl({
- required Token? keyword,
- required Token? star,
- required BlockImpl block,
Initialize a newly created function body consisting of a block of
statements. The keyword can be null
if there is no keyword specified
for the block. The star can be null
if there is no star following the
keyword (and must be null
if there is no keyword).
Implementation
BlockFunctionBodyImpl({
required this.keyword,
required this.star,
required BlockImpl block,
}) : _block = block {
_becomeParentOf(_block);
}