getChangeTypeValue static method

int? getChangeTypeValue(
  1. ChangeType? changeType
)

Implementation

static int? getChangeTypeValue(ChangeType? changeType) {
  switch (changeType) {
    case ChangeType.DISLIKE:
      return 0;
    case ChangeType.LIKE:
      return 1;
    case ChangeType.INCREMENT:
      return 2;
    case ChangeType.DECREMENT:
      return 3;
    case ChangeType.NOTIFY:
      return 5;
    case ChangeType.USER_SETTING:
      return 9;
  }
  return null;
}