Dart Tutorial

Dart Tutorial Single-Page Application Architecture Dart Features Dart Installation Guide Dart Basic Program Dart Syntax Dart Keywords Dart Variables Dart Comments Dart Standard Input Output Dart Important Concepts

Data Types

Built-in Data Types Numbers Strings Booleans Lists Sets Maps Runes and Graphemes Symbols Enumerations Constants Queues

Other data types

Objects Future and stream Iterable Miscellaneous types

OPERATORS

Precedence and associativity Arithmetic operators Equality and Relational operators Type Test Operators Assignment Operators Logical Operators Bitwise and Shift Operators Miscellaneous operators

Control Flow Statements

Introduction If statement If-else statement If-else-if statement Loops Switch and case Dart Break And Continue Assert In Dart

FUNCTIONS

Dart function Types of Functions Anonymous function main( ) function Lexical scope and closure Recursion Common Collection Methods

Object Oriented Concepts

Dart Object-Oriented Concepts Dart Classes Dart Constructors Dart This Keyword Dart Super Keyword Static Members Method Overriding Dart Interfaces Inheritance Dart Abstract Classes Dart Builder Classes Dart Callable Classes

Dart Type System

Dart Type System Dart Soundness Dart Type Inference

MISCELLANEOUS

Dart Isolates Dart Typedef Dart Metadata Dart Packages Dart Generics Dart Generators Dart Concurrency Dart Unit Testing Dart Html Dom Dart URIs Dart Extends, With and Implements Keywords Dart Optional Parameters Rust Vs Dart C++ vs Dart Golang Vs Dart Dart Basics Exception Handling

Dart Keywords

Keywords are the reserved words of a programming language, and they have a special meaning that comes defined by the language. These cannot be used as an identifier, and all these keywords are case-sensitive.

Whenever we use any keyword in our code, the lexical analysis phase of the compilation process returns a token associated with the keyword to a parser, which is then checked for validation.

There are 61 keywords in the Dart language. Here is the list of keywords offered by Dart:

abstract2elseimport2super
as2enuminswitch
assertexport2interface2sync1
async1extendsisthis
await3extension2library2throw
breakexternal2mixin2true
casefactorynewtry
catchfalsenulltypedef2
classfinalon1var
constfinallyoperator2void
continueforpart2while
covarient2Function2rethrowwith
defaultget2returnyield3
deffered2hide1set2
doifshow1
dynamic2implements2static2

1. Keywords with subscript 1 are conceptual keywords that have special meaning only in specific places. They are valid identifiers everywhere.

2. Keywords with subscript 2 are built-in identifiers. These keywords are valid identifiers almost everywhere, except they can’t be used as a class or type name, or as import prefixes.

3. Keywords with subscript 3 are limited reserved words related to asynchrony support.