Dart Tutorial

Welcome to Dart Tutorial by TutorialKart.

In this series of Dart Tutorials, we learn the basic concepts of Dart programming language.

Pre-requisites to learn Dart

There are no specific pre-requisites to learn Dart programming language. Of course having an idea of programming concepts help you learn faster. These Dart Tutorials are designed to address the beginners who have no idea of programming.

If you know any of the programming languages like C#, Java, JavaScript, etc., learning Dart becomes relatively easy.

IDE for Dart Programming

You can use any text editor present in your PC to write Dart code. Or, you can also use Dart Editor.

Dart Editor is very light-weight and productive for developers.

You can also use Eclipse or IntelliJ IDE to develop Dart applications. They have rich Dart editing experience.

Where is Dart used?

Dart is used in:

  • Flutter (Mobile Application Development)

Basics

These list of tutorials deal with the the basics like how to install dart on to your PC, write a simple program in Dart and run it, Dart Variables, how to write comments in Dart programs, conditional statement, looping statements, etc.

Get Started

  • Install Dart on WindowsDart Tutorial with step by step process to install Dart on Windows.
  • Dart Hello World ProgramDart Tutorial with a basic introduction to Dart programming using a Hello World program.
  • Dart VariablesDart Tutorial on how to create a variable, assign value to a variable, explicit declaration, reassigning variable with different datatypes, etc.
  • Dart CommentsDart Tutorial on how to write single-line comments and block (multi-line) comments.

Built-in Data Types

Conditional Statements

  • Dart IfDart Tutorial with syntax of if-statement, and some example to understand the usage of if-statement.
  • Dart If-ElseDart Tutorial with syntax of if-else statement, and some examples to throw some light on its usage.
  • Dart If-Else-IfDart Tutorial with syntax of if-else-if statement, and some example to understand the usage of if-else-if statement.

Loop Statements

  • Dart While LoopDart Tutorial with syntax for while loop statement, and how to use while loop to execute a block of code repeatedly based on a condition.
  • Dart Do-While LoopDart Tutorial with syntax and examples for do-while loop statement.
  • Dart For LoopDart Tutorial with syntax and examples for For-loop statement.
  • Dart BreakDart Tutorial on how to use break statement to break out of a loop.
  • Dart ContinueDart Tutorial on how to use continue statement to skip the execution for current iteration of the loop, and continue with the next iterations.

Operators

Arithmetic Operators

  • AdditionDart Tutorial on how to use Addition Operator to add two numbers.
  • SubtractionDart Tutorial on how to use Subtraction Operator to subtract a number from another.
  • MultiplicationDart Tutorial on how to use Multiplication Operator to find the product of two numbers.
  • Unary MinusDart Tutorial on how to use Unary Minus Operator to invert the sign of given number.
  • DivisionDart Tutorial on how to use Division Operator to find the quotient of division of given two numbers.
  • Division (Integer Quotient)Dart Tutorial on how to use Division Operator to find the quotient (an integer) of integer division.
  • Modulo DivisionDart Tutorial on how to use Modulo Operator to find the remainder of integer division of given two numbers.
  • IncrementDart Tutorial on how to use Increment Operator to increase the value in a variable by one.
  • DecrementDart Tutorial on how to use Decrement Operator to decrease the value in a variable by one.

Logical Operators

  • ANDDart Tutorial about logical AND operator, its syntax, truth table, and usage with examples. AND operator is used when we need to check if given two conditions must be met.
  • ORDart Tutorial about logical OR operator, its syntax, truth table, and usage with examples. OR operator is used when we need to check if at least one of the two given conditions must be met.
  • NOTDart Tutorial about logical NOT operator, its syntax, truth table, and usage with examples.

Exception Handling

  • Dart – Try CatchDart Tutorial with syntax and usage examples for try-catch statement. try-catch statement is used for handling exceptions thrown by the code in realtime.

Functions

Input / Output

String Operations

These Dart Tutorials cover String Operations that are mostly required while working with Strings. It contains operations like adding two strings, splitting a string by a specific delimiter, replacing a substring with another in a string, computing substring of a string given start index and end index, calculating the length of a string, trimming a string with trailing and leading white space characters, etc.

Dart Collections

List, Set, Map and Queue are the collection classes implemented in Dart. In the following Dart Tutorials, we walk you through these Collection classes and different properties and operations that could be performed on them.

In Dart, List is a collection of elements that can belong to different types. Also, elements in list are indexed. We can perform different operations of List with the help of built-in properties and methods of List class or primitive conditional and Looping statements.

Lists

Following series of tutorials deal with the different List Operations that are most useful while developing Dart applications.

Sets

Dart Set is a collection of unique elements that can belong to different types.

Following series of Dart Tutorials go through most useful operations on Dart Sets.

Maps

Dart Map is a collection of key:value pairs.

  • Maps
  • Map Length
  • Check if Map is Empty
  • Add Entries to Map
  • Check if Map contains Key
  • Check if Map contains Value
  • Remove Entry from Map
  • Iterate over Entries of Map

Runes

Symbols

Object Oriented Concepts

Object Class related Tutorials

Date and Time

Dart Others

  • Dart Tutorial – Dart Date Time
  • Dart Tutorial – Dart Duration

Dart Programs

Conclusion

In these series of Dart Tutorials, we introduced different concepts to get you started with Application Development using Dart programming.