fromString static method

Trigger? fromString(
  1. String trigger
)

Implementation

static Trigger? fromString(String trigger) {
  switch (trigger) {
    case 'On Tap':
      return Trigger.onTap;
    case 'On Long Press':
      return Trigger.onLongPress;
    case 'On Double Tap':
      return Trigger.onDoubleTap;
    case 'On Hover':
      return Trigger.onHover;
    case 'On Mouse Enter':
      return Trigger.onMouseEnter;
    case 'On Mouse Exit':
      return Trigger.onMouseExit;
    case 'On Change':
      return Trigger.onChange;
    case 'On Editing Complete':
      return Trigger.onEditingComplete;
    case 'On Submitted':
      return Trigger.onSubmitted;
    case 'On Load':
      return Trigger.onLoad;
    case 'On Date Changed':
      return Trigger.onDateChanged;
    case 'On Start Date Changed':
      return Trigger.onStartDateChanged;
    case 'On End Date Changed':
      return Trigger.onEndDateChanged;
    case 'On Detect':
      return Trigger.onDetect;
    default:
      return null;
  }
}