suffixWith method

String suffixWith(
  1. String str, {
  2. bool distinct = true,
})

Implementation

String suffixWith(String str, {bool distinct = true}) {
  if (distinct && endsWith(str)) {
    return this;
  } else {
    return '$this$str';
  }
}