formatNumbers method

String formatNumbers()

Implementation

String formatNumbers() {
  switch (this) {
    case 0:
      return '';
    case < 1000:
      return '$this';
    case < 1000000:
      return '${this / 1000}ألف';
    default:
      return '${this/1000000}م';
  }
}