ECommunityProfileItemType.fromValue constructor

ECommunityProfileItemType.fromValue(
  1. int value
)

Implementation

factory ECommunityProfileItemType.fromValue(int value) {
  switch (value) {
    case 0:
      return ECommunityProfileItemType.animatedAvatar;
    case 1:
      return ECommunityProfileItemType.avatarFrame;
    case 2:
      return ECommunityProfileItemType.profileModifier;
    case 3:
      return ECommunityProfileItemType.profileBackground;
    case 4:
      return ECommunityProfileItemType.miniProfileBackground;
    default:
      throw UnknownEnumValueException(
        "Unknown value for 'ECommunityProfileItemType'. The value was: '$value'",
      );
  }
}