copyAsOptional method

InterfaceAttribute copyAsOptional()

A copy of this attribute but make it optional.

Implementation

InterfaceAttribute copyAsOptional() {
  return InterfaceAttribute(
    attributeName: attributeName,
    returnType: returnType,
    parameters: parameters,
    optional: true,
  );
}