invalidateEffects method Null safety

void invalidateEffects()

Implementation

void invalidateEffects() => _effect?.invalidateEffect();