addWave method

void addWave(
  1. Wave wave
)

Adds a wave to the end of the list of waves.

List<Wave> waves = [wave1, wave2];
addWave(wave3); // [wave1, wave2, wave3]

Implementation

void addWave(Wave wave) => _waves.add(wave);