WavePainter constructor
WavePainter({
- required Animation<
double> animation, - required WavePainterData data,
Creates a WavePainter object.
This is the painter for wave animations.
Implementation
WavePainter({
required super.animation,
required this.data,
}) : super(repaint: animation) {
if (data.waves.isEmpty) {
throw const EmptyWaveListException('`waves` cannot be empty.');
}
}