ScrollerPainterStripes constructor

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

Creates a ScrollerPainterStripes object.

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

Implementation

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