copyWithType method

  1. @mustBeOverridden
NamedType copyWithType(
  1. TypeDeclaration type
)

Returns a copy of NamedType instance with new attached TypeDeclaration.

Implementation

@mustBeOverridden
NamedType copyWithType(TypeDeclaration type) {
  return NamedType(
    name: name,
    type: type,
    offset: offset,
    defaultValue: defaultValue,
    documentationComments: documentationComments,
  );
}