paintByState method

void paintByState(
  1. Canvas canvas,
  2. Size size,
  3. TouchRippleEffect effect
)

Draws a painting corresponding to a given instance of touch ripple effect.

Implementation

void paintByState(Canvas canvas, Size size, TouchRippleEffect effect) {
  effect.paint(controller.context, canvas, size);
}