- [flutter]print() 목차
반응형
사용을 위한 가장 간단한 방법은
int x=3;
print('hello world');
print(x);
print('x= $x');
print('x=' + x.toString()); <- print()는 String 타입을 받음으로 x를 스트링으로 변환하여야 한다
출력되는 값은
hello world
3
x=3
x=3
이렇게 출력된다
반응형
'flutter' 카테고리의 다른 글
[flutter]List<dynamic>' is not a subtype of type 'FutureOr<List<int>> (0) | 2021.01.10 |
---|---|
[flutter]sharedPreference 사용 실수 (0) | 2021.01.03 |
[flutter]The instance member '_number' can't be accessed in an initializer. (0) | 2020.12.26 |
[flutter]'await' applied to 'String', which is not a 'Future' (0) | 2020.12.26 |
[Flutter]변수를 문자열(string)로 치환하여 프린트(print) 하기($ 사용) (0) | 2020.12.13 |