ConstructorFieldInitializerImpl constructor

ConstructorFieldInitializerImpl({
  1. required Token? thisKeyword,
  2. required Token? period,
  3. required SimpleIdentifierImpl fieldName,
  4. required Token equals,
  5. 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);
}