BookSummary class

Composed by several parts with a given path.

Constructors

BookSummary(String filename, List<SummaryPart> parts)
const
BookSummary.create(String file, Iterable<Part> parts, [BookReadme? readme])
Create a summary object by a file path, several parts, and maybe a readme.
factory

Properties

filename String
final
hashCode int
The hash code for this object.
no setterinherited
json Map<String, dynamic>
no setter
parts List<SummaryPart>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

byLevel(String level) SummaryArticle?
Find a article object by given level.
byPath(String path) SummaryArticle?
Find a article object by given path.
findArticle(bool test(SummaryArticle a)) SummaryArticle?
Find an article object with a given callback test.
nextArticle(SummaryArticle article) SummaryArticle?
Find the sibling article.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parentLevel(String level) String
prevArticle(SummaryArticle article) SummaryArticle?
Find the previous sibling article.
toString() String
A string representation of this object.
inherited
walk(void it(SummaryArticle article)) → void
Retrieve an article tree by the observer pattern.

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int pos) SummaryPart