Skip to content

forhadulislam/learn-dart-with-examples

Repository files navigation

Learn Dart with examples

Learn about Dart with examples. This repo contains example codes for Dart beginners. The examples provide a better understanding of using Dart features. Here are the list of examples:

1. Basics
2. Variables and constants
3. Data types
4. Strings
5. Numbers
6. Booleans
7. Enums
8. Maps
9. Hashmap and Hashset
10. Queue
11. List
12. Set
13. If/Else
14. Switch
15. For Loop
16. Do while and While loop
17. Break & Continue
18. For each
19. Function & Function expression
20. Function parameters (Named, default)
21. Class
22. Inheritance
23. Getter and setter
24. Interface
25. Static method
26. Lambda
27. Higher order function
28. Lexical closure
29. Callable classes
30. Fixed length list
31. Scope
32. Exceptions
33. Generics
34. Generic classes
35. IO functions
36. OS
37. Timers
38. Callbacks
39. Futures
40. Awaits
41. http library
42. Hash
43. Http server
44. Http client
45. HTML
46. Unit testing
47. Async

How to run the examples

You can run the example files if you have Dart installed in your system. Here is an example of doing that -

dart 01.Basics/example.dart

Tested on: Dart VM version 2.7.2

How can the examples help

The best way to utilize the examples is to clone the repo and play with the parameters in your local environment.

Releases

No releases published

Packages

No packages published