Lesson 1: Dart Basic - truyenjc/FlutterBasicTraining GitHub Wiki
Learn Dart Programming, its basics and Fundamentals from scratch.
1. Constants, Data Types and Variables
- Data types and variables
- Define constants using
finalandconstkeywords
2. Control Flow
- If statements, switch statements
- Ternary operator
- The for statements, while statemets
3. Functions or Methods
- Declaring functions
- Function Expressions: Fat arrow
=>(Short hand syntax) - Optional Positional Parameters
- Optional Named Parameters
- Optional Default Parameters
4. Error handling
- The
try,on,catchblocks - The
finalblock - Throwing an exception
- Custom exceptions
5. Functional Programming
- Lambda Expression
- Higher-Order Functions
- Lexical Closures
6. Dart Collections
- Array and List
- Set and HashSet
- Map and HashMap
7. Callable Classes
- How to define and use callable classes
8. Null Safety
- Understanding null safety
- Safe calls with
?. - How to use
??,??=operators
9. Object Oriented Programming
- Defining Class and creating Objects
- Constructors
- Inheritanc, using constructors in Inheritance
- Getter and Setter
- Polymorphism