String getCurrency(int amount, {bool withoutRp = false}) { var myFormat = new NumberFormat("#,###", "ind"); if (withoutRp) return myFormat.format(amount); return "Rp. " + myFormat.format(amount); }