createCommand static method

Command? createCommand(
  1. String methodName
)

Implementation

static Command? createCommand(String methodName) {
  switch (methodName) {
    case "ReplayClickMethod":
      return ReplayClickCommand();
    case "GetFullHierachyMethod":
      return GetFullHierarchyCommand();
    case "GetScreenshotMethod":
      return GetScreenshotCommand();
    case "GetPropertiesMethod":
      return GetPropertiesCommand();
    case "ReplayTouchMethod":
      return ReplayTouchCommand();
    case "ReplaySwipeMethod":
      return ReplaySwipeCommand();
    case "ReplayClickChildMethod":
      return ReplayClickChildCommand();
    case "ReplayKeySequenceMethod":
      return ReplayKeySequenceCommand();
    case "ReplaySetValueMethod":
      return ReplaySetValueMethod();
    default:
      return null;
  }
}