ScrollerPainterCircles constructor

ScrollerPainterCircles({
  1. required Animation<double> animation,
  2. required ScrollerPainterData data,
})

Creates a ScrollerPainterCircles object.

This is the painter for animating circles moving around the screen.

Implementation

ScrollerPainterCircles({required super.animation, required super.data}) {
  if (!identical(data.shape, ScrollerShape.circles)) {
    throw MismatchedPainterAndDataException(
      'The provided data is not compatible with this painter. Invalid shape.',
      this,
      data,
    );
  }
}