Dart — Command Reference
Dart's most used commands and methods — each with explanations, working examples, and real-world usage. The foundation of Flutter apps.
7 categories · 19 commands
🖥️
Output
Printing to the console and string interpolation.
print()String interpolation ( $ )📦
Variables & Types
var, final, const, and type conversion.
varfinal / constint.parse() / toString()🔢
Numbers & Math
Operators and dart:math functions.
Math operators.abs() / .round()sqrt() / pow() (dart:math)✍️
String
Length, character, splitting, and searching methods.
.length / .toUpperCase().substring() / .contains().split() / .replaceAll()📚
List & Map
Ordered lists and key-value mappings.
List (items)Map (dictionary)🔀
Condition & Loop
if/else, for, while, and for-in.
if / elsefor / for-inwhile🧩
Function
Definition, return, arrow (=>), and default parameters.
Function definitionArrow function ( => )Default parameter