reset method

  1. @override
void reset()
override

Restore the effect to its original state as it was when the effect was just created.

A common use case for this method is to have an effect which is permanently attached to its target (i.e. with removeOnFinish == false), and then periodically resetting this effect each time you need to apply it to the target.

Implementation

@override
void reset() {
  super.reset();
  target.paint.maskFilter = null;
}