firstEffectOf method

PsLayerEffect? firstEffectOf(
  1. PsLayerEffectKind kind
)

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;
}