官术网_书友最值得收藏!

  • Mastering Dart
  • Sergey Akopkokhyants
  • 140字
  • 2021-08-05 17:19:19

Chapter 2. Advanced Techniques and Reflection

In this chapter, we will discuss the flexibility and reusability of your code with the help of advanced techniques in Dart. Generic programming is widely useful and is about making your code type-unaware. Using types and generics makes your code safer and allows you to detect bugs early. The debate over errors versus exceptions splits developers into two sides. Which side to choose? It doesn't matter if you know the secret of using both. Annotation is another advanced technique used to decorate existing classes at runtime to change their behavior. Annotations can help reduce the amount of boilerplate code to write your applications. And last but not least, we will open Pandora's box through Mirrors of reflection. In this chapter, we will cover the following topics:

  • Generics
  • Errors versus exceptions
  • Annotations
  • Reflection
主站蜘蛛池模板: 海林市| 资中县| 杂多县| 韶山市| 翼城县| 禹州市| 富平县| 永昌县| 顺义区| 东丰县| 阜康市| 区。| 聂拉木县| 尼木县| 崇左市| 高要市| 景德镇市| 桃源县| 封丘县| 兰溪市| 兴隆县| 宁河县| 阿坝县| 宿州市| 延边| 许昌市| 昔阳县| 平昌县| 根河市| 沐川县| 高青县| 嘉峪关市| 淮南市| 两当县| 闵行区| 康马县| 北碚区| 和林格尔县| 玛多县| 太仆寺旗| 乾安县|