Wow - Part One got a few visitors! Thanks for popping by - now on with Part Two.
Seth Ladd from the Dart team dropped a comment on the code - you'll notice all fields are lower case now :-) This was an easy change thanks to Dart Editor's built in refactoring. I have added more fields to the Chapter class and we can now create a chapter based on just the title. Named constructors coming in handy here. Two methods on Novel allow adding of Chapters and they return a reference for adding more details.
Of course, our presentation layer needs a little update for all these new fields:
The test novel needs expand to use the new methods and fields.
Grab the code from Github - https://github.com/daftspaniel/dart-nanowrimoplanner
Right, I think that is looking good now. I am going to feed in my current novel plan. Part Three will be based on tweaks from using it for real and suggestions from comments. Dart has been a very productive language to write this in - glad I chose it over Python for this task. Happy coding and novel writing!