toMarkdown method
Converts this object to a Markdown string.
Uses markdownBuilder to serialize the result of toJson(). Throws an UnimplementedError if markdownBuilder is not provided.
Implementation
String toMarkdown() {
if (markdownBuilder == null) throw UnimplementedError();
return markdownBuilder!(toJson());
}