addParameterToSupertype method

void addParameterToSupertype(
  1. Reference parameter
)

Implementation

void addParameterToSupertype(Reference parameter) {
  assert(_supertype != null);
  final supertype = _supertype!;

  _supertype = (
    _supertype!.$1,
    {...supertype.$2, parameter}.toList(),
  );
}