setEffect method

void setEffect(
  1. VideoEditorEffect effect
)

Implementation

void setEffect(VideoEditorEffect effect) {
  if (_selectedClipIndex < 0 || _selectedClipIndex >= _clips.length) return;
  _clips[_selectedClipIndex] = _clips[_selectedClipIndex].copyWith(effect: effect);
  _clips[_selectedClipIndex].markEdited();
}