Flutter Uri
-
[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...