AnswerImporter class

Plans the import of a markdown rendition's answers into a Blueprint YAML.

Constructors

AnswerImporter({required SpecRootDefinition type, required String yamlText, required SpecDocument document, required String rendition, bool allowOtherEdits = false})
Binds the importer to the current yamlText, its decoded document and the rendition of that document.
AnswerImporter.forYaml(SpecRootDefinition type, String yamlText, {bool allowOtherEdits = false})
Decodes yamlText and renders it, then binds an importer to both.
factory

Properties

allowOtherEdits → bool
Whether narrative edits other than answers are imported too.
final
document → SpecDocument
The current YAML, decoded.
final
hashCode → int
The hash code for this object.
no setterinherited
rendition → String
The rendition of document.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → SpecRootDefinition
The document's model, root, metadata tree and schema.
final
yamlText → String
The current YAML text.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
plan(String editedMarkdown) → ImportPlan
Plans the import of editedMarkdown.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

diffContext → const int
How many differing lines a refusal shows per side.