Please enable JavaScript.
Coggle requires JavaScript to display documents.
Dart (FUNCTIONS (assert(expression), print(value), anonymous function, as…
Dart
FUNCTIONS
assert(expression)
print(value)
anonymous function
as parameter
as result
assign to variable
callback
замыкание
лексическое окружение
arrow function
OPERATORS
for
while
Spread operator (...)
null aware spread operator (...?)
ARITHMETIC
TYPE TEST
is
as
is!
LOGICAL
&&
||
!exp
CONDITIONAL
if-else
ternary
condition ? expr1 : expr2
??
name ?? 'Guest'
conditional member access
.?
switch - case
break - continie
EXEPTIONS
try-catch
TYPES
int
String
${}
многоуровневые строки '''
bool
List(also array)
.indexOf(item)
.forEach(callback)
.map(callback)
.elementAt(index)
.add(element)
.removeAt(index)
.contains(element)
Properties
.length
.first
.last
.where(callback)
.firstWhere(callback)
.lastWhere(callback)
.clear()
double
DateTime
Map - {key: value}
class
List<T>
VARIABLES
var
typed
dynamic
final
private(_userName)
CLASS
named parameter
constructor({age, name})
required
Constructor
default
named
extends
Global functions
print()
int.parse()
double.parse()
BASICS
lexical scope
lexical closures(замыкание)
OBJECT
property
.
runtimeType
Особенности
factory constructor
Future(like promise)