flutter3 [Dart]Named 파라미터 Dart는 네임드 파라미터 기능을 제공한다. 메소드를 호출할 때 파라미터의 이름을 대고 파라미터의 값을 지정해주는 것을 네임드 파라미터라고 한다. C#에서는 메소드에 별도 처리없이 일반적인 파라미터 값만 지정하고 호출하든 네임드 파라미터를 사용하든 자유롭지만, Dart에서는 이를 메소드를 선언할때 명확히 해줘야 한다. 아래의 코드 예시는 일반적인 함수의 호출 사례이다. void printHelloWorld(int numbers, String postfix) { for (int i = 0; i < numbers; i++) { print('hello ${i + 1} $postfix'); } } void main() { printHelloWorld(5,'world'); } 이를 네임드 파라미터를 지원하는 함수.. 2023. 3. 14. [Flutter] 네이버 지도 API 사용법 https://www.ncloud.com/product/applicationService/maps NAVER CLOUD PLATFORM cloud computing services for corporations, IaaS, PaaS, SaaS, with Global region and Security Technology Certification www.ncloud.com https://pub.dev/packages/flutter_naver_map/versions/1.0.0-dev.5 flutter_naver_map 1.0.0-dev.5 | Flutter Package Naver Map plugin for Flutter, which provides map service of Korea. pub.dev 최신.. 2023. 3. 2. Flutter 앱 프로젝트 생성(VS code) 1. Ctrl+shift+p를 눌러 command pallete 호출합니다. 2."flutter"를 입력한 후,Flutter: New Project를 선택 3.프로젝트의 용도를 선택하고, 프로젝트가 설치될 위치를 지정합니다. 4.프로젝트의 이름을 입력하고 엔터를 눌러주세요. 성공적으로 프로젝트가 생성 되었습니다. 2023. 2. 18. 이전 1 다음