findLayerEffect method

void findLayerEffect()

Implementation

void findLayerEffect() {
  var layerEffects = children?.whereType<ActorLayerEffectRenderer>();
  var change = layerEffects != null && layerEffects.isNotEmpty
      ? layerEffects.first
      : null;
  if (_layerEffect != change) {
    _layerEffect = change;
    // Force update the opacity.
    markTransformDirty();
  }
}