getGiveNotation method

String getGiveNotation({
  1. bool withDamage = true,
})

Implementation

String getGiveNotation({bool withDamage = true}) {
  var result = type;
  if (tag != null && tag!.isNotEmpty) {
    result += gson.encode(tag);
  }
  result += ' ';
  if (count != null) result += count.toString();
  if (damage != null && withDamage) result += ' $damage';
  return result;
}