toCountingState static method
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";
}