Android (2) 썸네일형 리스트형 flutter share through other apps Hello guys today, Im going to tell you about the function below This function uses the library called 'share' and you can get it in https://pub.dev/packages/share#-readme-tab- after you come here attach dependencies: share: ^0.6.4 at yami file & attach import 'package:share/share.dart'; at your dart file so now, you are ready to use it. Here are my codes below 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15.. Dart 기본문법 중 메모 1. assert() 함수 -> 계산 결과가 참인지 검사. 예제) assert(2 + 3 == 5); assert(3 * 5 == 15); 위 예제는 모두 참 2. 타입 검사 키워드 is is : 같은 타입이면 true is! : 다른 타입이면 true 예제) int a = 10; if (a is int) { print('정수'); } String text = 'hello'; if (text is! int) { print('숫자가 아님'); } 3. 형변환 키워드: as 같은 타입끼리 변환 X ex) var -> int / double -> int 상위개념으로만 변환 O ex) int -> double; / int -> num / double -> num 예제) var c = 30.5; int d = c.. 이전 1 다음