enum GestureAction {
  none,
  playPause,
  fullscreen,
  toggleControls,
  seekBackward,
  seekForward,
  previousItem,
  nextItem,
  exit,
}

GestureAction gestureActionFromName(String? name, GestureAction fallback) {
  if (name == null) return fallback;
  for (final v in GestureAction.values) {
    if (v.name == name) return v;
  }
  return fallback;
}
