stringify property

String stringify

Implementation

String get stringify => (() {
      final buffer = StringBuffer()
        ..write('${formatter.format(date)} $type ${account.stringify}');

      if (currencies.isNotEmpty) {
        buffer.write(' ${currencies.join(',')}');
      }

      if (bookingMethod != null) {
        buffer.write(' "$bookingMethod"');
      }

      if (comment != null && comment!.isNotEmpty) {
        buffer.write(' ; $comment');
      }

      for (final meta in metadata.entries) {
        buffer.write('\n  ${meta.key}: ${meta.value.stringify}');
      }

      return buffer.toString();
    })();