Dart lexical scope

preview_player
Показать описание
Dart is lexically scoped. Every code block has access to variables "above" it. The scope is defined by the structure of the code, and you can see what variables are in the current scope by following the curly braces outward to the top level:
#dart
#dartprogramming
#flutter
#flutterdeveloper
Рекомендации по теме