In C# I can do:
12341.4.ToString(\"##,#0.00\")
and the result is 12,345.40
What\'s the equivalent in dart?
Here's an example from a flutter implementation:
import 'package:intl/intl.dart';
final formatCurrency = new NumberFormat.simpleCurrency();
new Expanded(
child: new Center(
child: new Text('${formatCurrency.format(_moneyCounter)}',
style: new TextStyle(
color: Colors.greenAccent,
fontSize: 46.9,
fontWeight: FontWeight.w800)))),
Results in $#,###.## or $4,100.00 for example.
Note that the $ in Text('${... is only to reference the variable _moneyCounter inside the ' ' and has nothing to do with the $ added to the formatted result.