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
filepath, severalparts, and maybe areadme.factory
Properties
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