stringify property

String stringify

Implementation

String get stringify => (() {
      final buffer = StringBuffer();
      switch (value.runtimeType) {
        case DateTime:
          buffer.write(formatter.format(value as DateTime));
          break;
        default:
          buffer.write('"$value"');
          break;
      }

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

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