toString method

  1. @override
String toString()
override

pretty print this thing .

Implementation

@override
String toString() {
  final DateFormat formatter = DateFormat('dd-MM-yyyy');
  final String formatted = formatter.format(datum);
  var f = NumberFormat.currency(symbol: cur2sym(cur));
  double valAsd = valuta / 100;

  String result =
      "$formatted ${_kminus.printname()} ${_kplus.printname()} ${sprintf("%-49s", [ desc ])} ${sprintf("%12s", [f.format(valAsd)])}";
  return result;
}