ConstructorFieldInitializerImpl constructor
ConstructorFieldInitializerImpl({
- required Token? thisKeyword,
- required Token? period,
- required SimpleIdentifierImpl fieldName,
- required Token equals,
- required ExpressionImpl expression,
Initialize a newly created field initializer to initialize the field with
the given name to the value of the given expression. The thisKeyword and
period can be null
if the 'this' keyword was not specified.
Implementation
ConstructorFieldInitializerImpl({
required this.thisKeyword,
required this.period,
required SimpleIdentifierImpl fieldName,
required this.equals,
required ExpressionImpl expression,
}) : _fieldName = fieldName,
_expression = expression {
_becomeParentOf(_fieldName);
_becomeParentOf(_expression);
}