countingText method

String countingText(
  1. int current,
  2. int total, [
  3. String separator = "/"
])

Implementation

String countingText(
  int current,
  int total, [
  String separator = "/",
]) {
  return "$current$separator$total";
}