Android Basics: Kotlin(1)

1. Variables 1-1 'val' and 'var' var is mutable, can be changed during execution val is immutable, cannot be changed once initialized 1 2 3 4 5 6 //OK var myName = "Cherry" myName = "newName" //NG val myName = "Cherry" myName……

Flutter Basics: Dart(3)

3-1 Classes Dart is an OO language 3-1-1 Ways to initiate objects literal 1 2 String text = 'initial'; final list = [1,2,3]; invoke a constructor constructor with initial value of fields 1 2 3 4 5 6 7 8 9 10……

Flutter Basics: Dart(2)

2-1 Functions Function scope 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 void main(List<String> arguments) { String nestedFunction() { return 'nested level'; } print(topFunction()); //top level scope print(nestedFunction()); //only valid inside of……

Flutter Basics: Dart(1)

Targets Build a pure flutter&Console application Understand similarities and differences between Dart and other languages 1-1 Project set-up (VScode) F1 > dart: create new project > simple console application Every single dart app has a main method, run as soon as the……