copyWithType method

  1. @override
ApiField copyWithType(
  1. TypeDeclaration type
)
override

Returns a copy of Parameter instance with new attached TypeDeclaration.

Implementation

@override
ApiField copyWithType(TypeDeclaration type) {
  return ApiField(
    name: name,
    type: type,
    offset: offset,
    documentationComments: documentationComments,
    isAttached: isAttached,
    isStatic: isStatic,
  );
}