firstEffectOf method
Returns the first effect belonging to kind, when present.
Implementation
PsLayerEffect? firstEffectOf(PsLayerEffectKind kind) {
for (final PsLayerEffect effect in effects) {
if (effect.kind == kind) {
return effect;
}
}
return null;
}