일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Collection
- textstyle
- DART
- 다트
- 콜렉션
- import
- variable
- 크롤러
- 웹크롤러
- pushnamed
- kotlin
- 플러터
- function
- package
- Flutter
- crawler
- python
- Yocto
- 코틀린
- Android
- Class
- animation
- text
- 파이썬
- set
- map
- 함수
- List
- 클래스
- ML
- Today
- Total
목록Dart (14)
조용한 담장
Dart Funciton Function object function 은 Function type 을 가지는 object 이다. 변수에 할당되거나 다른 함수의 인자가 될 수있다. bool isNoble(int atomicNumber) { return _nobleGases[atomicNumber] != null; } isNoble(atomicNumber) { return _nobleGases[atomicNumber] != null; } bool isNoble(int atomicNumber) => _nobleGases[atomicNumber] != null; return type 이 생략될 수 있다. => expr 은 { return expr } 와 동일하다. parameters Mandatory param..
Dart Variables 모든 변수는 object 이며, object 는 class의 instance 이다. 모든 object 는 Object class를 상속한다. Types Type inference var name = 'Bob'; // String name = 'Bob';변수 name 은 Object를 가리키는 reference를 가지게 된다. 위의 경우에는 'Bob' 이라는 문자열을 보고 String Object 를 reference의 대상으로 지정한다. 해당 변수의 타입 변경이 있을 수 있다면 dynamic을 쓰면 되나 권장되진 않는다. dynamic name = 'Bob'; if (name is String) return true;Fi..