-
[Flutter]URI함수웹 and 앱 프로그래밍/Flutter 2022. 12. 24. 15:40
함수 뜻을 자세히 모르고 구글링하며 사용하다 꽤나 애 좀 먹었다....;
Uri.https('호스트&포트','경로','쿼리파라미터값(GET요청시)')
return => 완성된 Uri 타입의 URL완성
Uri.parse('스트링형식의 URL')
return => URL을 분리해서 Uri타입으로 반환해준다
ex)
final uri = Uri.parse( 'https://dart.dev/guides/libraries/library-tour#utility-classes'); print(uri); // https://dart.dev print(uri.isScheme('https')); // true print(uri.origin); // https://dart.dev print(uri.host); // dart.dev
등등...
자세한건 공식 홈페이지에있으니 참고해보자 참고로 파일도 전송가능하다카드라
https://api.flutter.dev/flutter/dart-core/Uri-class.html
'웹 and 앱 프로그래밍 > Flutter' 카테고리의 다른 글
[Flutter] Main함수를 비동기 선언시 (0) 2022.12.28 [Flutter] () => 란 (0) 2022.12.25 [Flutter]크롤링 중 한글이 이상할 때 EX) (0) 2022.12.24 [Flutter]Scaffold (0) 2022.12.24 [Flutter]Future Await Async (0) 2022.12.24