copyWithType method
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,
);
}