formatCurrency function

String formatCurrency(
  1. double value
)

Returns a formatted string of a currency value in euros.

Implementation

String formatCurrency(double value) {
  return "${value.toStringAsFixed(2)} €";
}