replaceClip method
Replaces the clip with the same id, keeping its position.
Implementation
void replaceClip(VideoEditorClip clip) {
final index = _clips.indexWhere((c) => c.id == clip.id);
if (index != -1) _clips[index] = clip;
}
Replaces the clip with the same id, keeping its position.
void replaceClip(VideoEditorClip clip) {
final index = _clips.indexWhere((c) => c.id == clip.id);
if (index != -1) _clips[index] = clip;
}