Book Description
Dart is a great fit for both - Mobile Apps and Web Apps. Dart is free and open source and the repository is available at https://github.com/dart-lang. And at the same time, you may get the feel of the language at the official website: https://www.dartlang.org/. In this book, we will understand why learning Dart language is important for us to build mission-critical Mobile Apps on iOS and Android.The developers around the world use Dart to create high-quality apps for iOS and Android and the web. It is feature rich so that client-side development is also possible. As we progress step-by-step, we will see how correct this statement is.In the first half of the book, we will learn Dart language and the second half continues to another book "Beginning Flutter with Dart", where we will learn Dart along with Flutter, a rich and powerful framework for building mobile apps. In that book, we will build our first mobile apps from a single codebase on iOS and Android. If you want to learn to build native iOS and Android mobile apps and web apps using Dart, then this book serves as a good introduction because it is designed to give you a complete idea about how Dart works.A Few Words About DART IDE1. Why Dart Language?2. Learning Dart from Scratch: Variables, Operators and Conditionals, Control FlowVariables Store ReferencesBuilt in Types in DartSuppose, You don't like VariablesMore about built-in typesPlay with Number and DoubleUnderstanding StringsTo be True or to be FalseIntroduction to Collections: Arrays are Lists in DartGet, Set and GoOperators are UsefulEquality and relational operatorsType test operatorsAssignment operatorsSummery of the First Part2.1. Control the flow of your codeIf and ElseConditional Expression2.2 Looking at LoopingFor LoopsWhile and Do-WhilePatterns in LoopingFor Loop LabelsContinue with For LoopDecision making with Switch and case3. Functions and ObjectsA Short Introduction to FunctionA Short Introduction to Objects3.1. Digging Deep into Object Oriented ProgrammingWhy we need ConstructorsHow to implement ClassesHow Functions or Methods WorkLexical Scope in FunctionA few words about Getter and SetterDifferent types of ParametersMore about Constructors4. Inheritance and Mixins in DartMixins: Adding more Features to a Class5. Abstract Class and Methods6. Advantage of Interfaces7. Static Variables and Methods8. Anonymous Functions: Lambda, Higher Order Functions, and Lexical ClosuresLambda: The Anonymous FunctionExploring Higher Order FunctionsClosure is a Special Function9. Data Structures and CollectionsLists: Fixed Length and Growable Set: An Unordered Collections of Unique ItemsMaps: the Key, Value PairQueue is Open-Ended10. Callable Classes11. Exception Handling12. Dart Packages and Libraries13. What Next