BookContext class
Actually a book manager for a multilingual book. It holds several books
with lang path as its key, '' is the key if book root is noraml book.
And a LanguageManager if necessary.
Constructors
-
BookContext({required Logger logger, required Parser parser, required String root, required Map<
String, Book> books, required LanguageManager? langManager, required BookIgnore ignore, required BookConfig config})
Properties
-
books
→ Map<
String, Book> -
final
- config → BookConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignore → BookIgnore
-
final
- isMultilingual → bool
-
Is this book the parent of language's books
no setter
- langManager → LanguageManager?
-
final
- logger → Logger
-
final
- parser → Parser
-
final
- root → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
listAssets(
{bool relative = false}) → Iterable< String> - All asset file paths in book root directory.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String lang) → Book? -
operator []=(
String lang, Book book) → void - Add a new language book