- Mastering Dart
- Sergey Akopkokhyants
- 102字
- 2021-08-05 17:19:20
Chapter 3. Object Creation
In this chapter, we will talk about the creation of objects. We will see how and when to create them using best practices from the programming world, and then find a place for them to be accommodated in Dart. The different techniques covered here will help us to make correct choices that will be useful in different business cases. In this chapter, we will cover the following topics:
- A generative constructor
- A constructor with optional parameters
- A named constructor
- A redirecting constructor
- A private constructor
- A factory constructor
- A constant constructor
- Initialization of variables
- Syntactic sugar
推薦閱讀
- 物聯(lián)網(wǎng)(IoT)基礎(chǔ):網(wǎng)絡(luò)技術(shù)+協(xié)議+用例
- Learning QGIS 2.0
- Oracle SOA Suite 11g Performance Tuning Cookbook
- HCNA網(wǎng)絡(luò)技術(shù)
- 物聯(lián)網(wǎng)信息安全
- HTML5 Game development with ImpactJS
- React:Cross-Platform Application Development with React Native
- 從實踐中學(xué)習(xí)手機抓包與數(shù)據(jù)分析
- 5G時代的大數(shù)據(jù)技術(shù)架構(gòu)和關(guān)鍵技術(shù)詳解
- Dart Cookbook
- 計算機通信網(wǎng)絡(luò)安全
- Python API Development Fundamentals
- 5G智慧交通
- 物聯(lián)網(wǎng)技術(shù)與實踐
- Building Microservices with Spring