getKarmaEmoticons method

List<Emoticon> getKarmaEmoticons(
  1. int userKarma
)

Implementation

List<Emoticon> getKarmaEmoticons(int userKarma) {
  List<Emoticon> returnList = [];

  if (karma != null) {
    karma!.forEach((key, value) {
      if (userKarma >= key) {
        returnList.addAll(value);
      }
    });
  }

  return returnList;
}