上QQ阅读APP看书,第一时间看更新
Summary
By now you have acquired a lot of technical skills and gained insights into how Dart works. The main ideas to take away from this chapter are:
- The relevance of typing variables in Dart and when to apply them: type the public API of your app in order to enhance tooling and documentation, which is produced with the built-in tool Dartdoc
- Dart's constructs are very familiar but the approach is quite refreshing, leading to elegant code
- In particular, Dart incorporates quite a few functional ways of coding: functions are quite powerful and working with collections uses this intensively
In the next chapter we will see that Dart is a familiar object-oriented language using classes. Generic types are also available, and we show how to use libraries to structure your growing code. Using external libraries is easy with the pub tool, and tests can be integrated with the unit testing library.