add method
Story
add(
- String name,
- ChapterBuildFunction buildFn, {
- String? codeLink,
- String? info,
- bool pinInfo = false,
Implementation
Story add(
String name,
ChapterBuildFunction buildFn, {
String? codeLink,
String? info,
bool pinInfo = false,
}) {
final _chapter = Chapter(
name,
buildFn,
this,
codeLink: codeLink,
info: info,
pinInfo: pinInfo,
);
chapters.add(_chapter);
return this;
}