fbpx

what is dart

Dart Programming Language Syntax

The Dart programming language has a C-style syntax that is inspired by languages like C++, Java, C#, and JavaScript. Dart programs are made up of a series of statements, each ending with a semicolon (;). The => expr syntax is a shorthand for { return expr; } and is sometimes called arrow syntax. Only an expression, not a statement, can appear between the arrow (=>) and the semicolon (;).