count static method

String count(
  1. int value
)

A count with thousands separators — steps, followers, a place in a league: 1240 → "1,240". The sign leads: "-1,240".

Implementation

static String count(int value) =>
    '${value < 0 ? '-' : ''}${_grouped(value.abs())}';