ConstructorNameImpl constructor

ConstructorNameImpl({
  1. required NamedTypeImpl type,
  2. required Token? period,
  3. required SimpleIdentifierImpl? name,
})

Initialize a newly created constructor name. The period and name can benull if the constructor being named is the unnamed constructor.

Implementation

ConstructorNameImpl({
  required NamedTypeImpl type,
  required this.period,
  required SimpleIdentifierImpl? name,
})  : _type = type,
      _name = name {
  _becomeParentOf(_type);
  _becomeParentOf(_name);
}