일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- set
- textstyle
- crawler
- 코틀린
- variable
- 다트
- Collection
- pushnamed
- kotlin
- ML
- 크롤러
- map
- List
- 콜렉션
- animation
- Android
- function
- text
- Flutter
- Class
- 웹크롤러
- 플러터
- DART
- python
- package
- texttheme
- import
- 파이썬
- 클래스
- 함수
- 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..