If you build a flutter project on android studio, you will get codes like below
in this code, you can see some codes like
WTF is the <MyHomePage> and What do the <> do??
It is a class named 'State' that contains a class named 'MyHomePage'
So, it's a class. and it contains a class.
Do you understand? I don't lol
If you Ctrl + click State, you can go to
here.
it measn T is a class, you can use class T in the class State.
Lets see an example
In Dart, everything is class.
Even int, String are classes too!
So, you can put String int <>
this code, class Obj uses class String
So, you can print 'String' by using the class String
it's end
byebye
'안드로이드 > Flutter' 카테고리의 다른 글
플러터 입문자에게 좋은 사이트 (0) | 2020.05.25 |
---|---|
flutter toast 사용법 (0) | 2020.05.20 |
github에서 라이브러리를 가져오는 방법 (0) | 2020.05.15 |
Flutter - how to use custom Icons (0) | 2020.05.14 |
플러터 비동기 post방식 사용법 (0) | 2020.05.12 |