Programming in Dart: Fundamentals

Aug 27 2019 · Video Course (1 hr, 46 mins) · Beginner

Learn the fundamental building blocks of Google’s open source programming language, Dart, the language for Flutter development. Go from variables and data types to control flow, functions, collections, and defining your own Dart classes.

Version

  • Dart 2.4, Flutter 1.7, DartPad 2.4

Data Types & Operations

Introduction

4:54 Free

See an overview of topics covered in the course, set expectations for the course, and learn about why Google chose Dart as the language for Flutter.

1

Get introduced to the DartPad editor, use the main function and comments, and see how to run code in DartPad.

2

See how to create Dart variables, review the basic data types, learn about type inference, and learn about immutables and constants.

3

Practice working with variables, immutables, constants, and type inference through a hands-on challenge.

4

See how to use the Dart string type and string expressions and how to use Unicode values and emoji in Dart using runes.

5

Practice working with strings, string expressions, Unicode values, and runes through a hands-on challenge.

6

Operators

2:38

Learn about Dart arithmetic, comparison, and logical operators and see how to combine comparison and logical operators.

7

All types in Dart are objects, including primitive types. See how Dart handles null values and work with some null aware operators.

8

Conclusion

1:38

Review all that you've learned about Dart variables, data types, and operations, and get ready for the next part of the course.

9

Control Flow

See an overview of the topics discussed in this part of the course on Control Flow, including conditionals, loops, and enumerations.

10

Learn about how to execute code conditionally using the if statement and if/else if/else statements.

11

See how to repeatedly execute a block of code with while and do while loops, and learn how to exit a loop early using the break statement.

12

Practice working with while loops, do while loops, and the break statement through a hands-on challenge.

13

For Loops

2:29

See how to loop over a block of code a set number of times using for loops, and see how to jump early to the next iteration using the continue statement.

14

Practice working with for loops and the jumping to the next iteration early with continue through a hands-on challenge.

15

Get an introduction to creating custom types using enumerations, and see another way to control program flow using the switch statement.

16

Practice creating custom types with enumerations and also using the switch statement through a hands-on challenge.

17

Conclusion

1:13

Review all that you've learned about conditionals, loops, and enumerations, and get ready for the next part of the course.

18

Functions

See an overview of the topics discussed in this part of the course on Functions, including function basics, anonymous functions, and closures.

19

See how to reuse code with functions, learn about function parameters and arguments, and see how to return values from functions.

20

Practice working with functions, parameters and arguments, and returning values from functions through a hands-on challenge.

21

Learn about functions without names called anonymous functions, and see how closures are blocks of code that capture surrounding values.

22

Practice working with anonymous functions and capturing values using closures through a hands-on challenge.

23

Arrow Functions

1:21 Free

See a way to make your function code more concise and readable using the arrow syntax for one-line functions.

24

Practice working with one-line functions and the arrow function syntax through a hands-on challenge.

25

Conclusion

1:00

Review all that you've learned about functions, anonymous functions, and closures, and get ready for the next part of the course.

26

Collections

See an overview of the topics discussed in this part of the course on collections, including lists, sets, and maps.

27

Lists

4:30

Learn about one of the more common collection types, lists, and see the distinction between fixed-size and growable lists.

28

See how to operate on lists by transforming them element-by-element, filtering them, and calculating a single value from them.

29

Practice working with lists, iterating over lists, and operating on lists using the where function through a hands-on challenge.

30

Sets

2:14

See how to store a collection of unique values using sets, compare sets and lists, and see how to work with set operations like intersection and union.

31

Maps

3:22

Learn about storing key-value pairs in Dart maps, see how to add and remove pairs, and see how to iterate over the keys in a map.

32

Practice working with sets and maps, including creating and adding elements, through a hands-on challenge.

33

Conclusion

1:06

Review all that you've learned about Dart lists, sets, and maps, and get ready for the next part of the course.

34

Classes and OOP

See an overview of the topics discussed in this part of the course on classes and object-oriented programming.

35

Learn how to create your own custom Dart types using classes, add methods to classes, and see how to customize how instances of classes are printed.

36

See how to create instances of classes using special methods called constructors, and see the short-form of Dart constructors.

37

See how to create Dart objects and learn about reference types. Learn how to access object properties using getters and setters.

38

Practice defining your own types using Dart classes and creating objects through a hands-on challenge.

39

See how to add properties and methods to Dart classes that are shared amongst all instances of the class

40

See how to define a hierarchy of classes that share the same base functionality using inheritance, and learn about the as and is keywords.

41

See alternative ways to define shared behavior among types using abstract classes, which cannot be instantiated, and interfaces.

42

Conclusion

2:17

Review all that you've learned in the Programming in Dart: Fundamentals course, and discuss where you should go from here.

43

Who is this for?

This course is for beginning and experienced developers alike.

  • Experienced developers will be able to quickly pick up Dart syntax and idioms.
  • Beginning developers will learn about programming basics, from variables to functions and classes.

After watching this course, both beginning and experienced developers will be ready to dive deep into Flutter development.

Covered concepts

  • Variables and data types
  • Operators
  • Nullability in Dart
  • Control flow using conditionals loops
  • Functions and arrow syntax
  • Anonymous functions and closures
  • Lists, sets, and maps
  • Classes
  • Constructors
  • Static class members
  • Class inheritances
  • Abstract classes and Interfaces

Contributors

Comments