toCountingState static method

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

Converts current and total values to a counting state string.

Example: (2, 5) -> '2/5'

Implementation

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