setEffectAt method

void setEffectAt(
  1. int index,
  2. VideoEditorEffect effect
)

Sets the look of clip index without changing the selection.

Implementation

void setEffectAt(int index, VideoEditorEffect effect) {
  if (index >= 0 && index < _clips.length) {
    _clips[index] = _clips[index].copyWith(effect: effect);
    _clips[index].markEdited();
  }
}