سلام دوستان اگه خواستین قیمتها رو سه رقم سه رقم جدا کنید میتونید از این متد استفاده کنید
String pricalbe(int price) {
RegExp reg = RegExp(r'(\\d{1,3})(?=(\\d{3})+(?!\\d))');
String Function(Match) mathFunc = (Match match) => '${match[1]},';
return "${price.toString().replaceAllMapped(reg, mathFunc)} تومان ";
}
نحوه استفاده اینطوری میشه
Text(pricalbe(product.price))