Variables
Init
var name = 'Test';
Object name = 'Test';
var hex = 0xDEADBEEF;
var number = 1;
double d = 0.1;
num x = 1; // x — is double and int
x += 0.1;
String name = 'Test';
int? lineCount; // default: null
assert(lineCount == null);Late/Lazy
late String descr;
void main() {
descr = 'Test';
print(descr);
}Const & Final
Build-in types
Converting
Strings
Lists
Spread operator (...)
if и for
Sets
Maps
Last updated