toLimitation method

String toLimitation(
  1. int limit, {
  2. String limitSign = "+",
  3. bool signAsEnd = true,
})

Implementation

String toLimitation(
  int limit, {
  String limitSign = "+",
  bool signAsEnd = true,
}) {
  if (use > limit) {
    return signAsEnd ? "$limitSign$limit" : "$limit$limitSign";
  } else {
    return "$this";
  }
}