Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Dartの引数を知る
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
ponday
May 17, 2018
Programming
0
760
Dartの引数を知る
ponday
May 17, 2018
Tweet
Share
More Decks by ponday
See All by ponday
関数型でGoFのデザインパターンやってみる
honda
1
1.6k
TypeScriptの型表現
honda
10
3.1k
Web Componentsの今
honda
1
460
これまでのReact、これからのReact
honda
0
320
Gatsbyお試し
honda
0
130
styled-components or emotion?
honda
0
700
Web ComponentsとAngular
honda
0
140
Atomic Design周りについての私見
honda
1
770
え、まだWeb Componentsを未来の技術だと思ってるの?
honda
2
870
Other Decks in Programming
See All in Programming
MUSUBIXとは
nahisaho
0
120
AtCoder Conference 2025
shindannin
0
1k
公共交通オープンデータ × モバイルUX 複雑な運行情報を 『直感』に変換する技術
tinykitten
PRO
0
200
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
440
TerraformとStrands AgentsでAmazon Bedrock AgentCoreのSSO認証付きエージェントを量産しよう!
neruneruo
4
2.7k
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
140
.NET Conf 2025 の興味のあるセッ ションを復習した / dotnet conf 2025 quick recap for backend engineer
tomohisa
0
130
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
CSC307 Lecture 01
javiergs
PRO
0
680
CSC307 Lecture 06
javiergs
PRO
0
680
今から始めるClaude Code超入門
448jp
7
8.1k
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
240
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
エンジニアに許された特別な時間の終わり
watany
106
230k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
240
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Building AI with AI
inesmontani
PRO
1
670
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Done Done
chrislema
186
16k
Transcript
Dartの引数を知る Flutter勉強会 in 福岡 #0 / May 17, 2018 ponday
(@ponday_dev)
Profile Honda, Yusuke (@ponday_dev) 株式会社ベガコーポレーション エンジニア ng-fukuoka Like : TypeScript,
RxJS, Angular, Python, Kotlin 元々サーバサイド 趣味フロントエンドエンジニア 最近の仕事では画像処理とか機械学習とか (アプリエンジニアではない) お仕事あればお声掛けください
None
https://github.com/ponday-dev/flutter-sample-todo デモアプリ作ってみました
Flutter - Google製のモバイルアプリケーションフレームワーク - 2018年2月にベータ版がリリース - 1ソースでiOS/Androidどちらでも動く - iOS/Androidそれぞれ向けにネイティブにコンパイルされる -
WebViewなどは用いてない - マテリアルデザインが標準提供 - 簡単にマテリアル統一感のあるアプリが作成可能 - IntelliJ IDEA向けのプラグインが優秀 - IntelliJ IDEAだけでiOSもAndroidもテストできる - Xcodeのインストールは必要
この辺は他の人からも説明があった(はず)
今回のテーマ
None
Dart - Google製のプログラミング言語 - Flutterのベータ版リリースと同時にv2が発表 - 静的型付けで(比較的)シンプルな構文 - 元々はJavaScriptの置き換えを狙っていたが挫折してAltJSに -
AngularDartなどGoogleが関わる技術などで時折登場している - Google Adsenseなど重要なプロダクトで採用されている - 一方GoogleのWeb開発の社内標準言語はTypeScriptに - async / await が実装済など、モダン(?)な機能も提供
触って思ったこと
引数の書き方が独特
普通の書き方
型は省略可能 - この場合、x, y, zの型とadd関数の戻り値はdynamic型に - 公式は「少なくとも公開APIには型を付ける」ことを推奨
オプション引数 - [ ]で囲むことで引数の省略が可能 - 省略した場合、値はnullに
複数のオプション引数も可
名前付き引数 - { }で囲むことで名前付き引数に - Flutterで多用されている
引数のデフォルト値 - オプション引数内で定義する
名前付き引数のデフォルト値 - 変数名 = デフォルト値 で定義 - 引数が渡されなかった場合、デフォルト値を適用
引数の渡し方を確認しておくと、 ソースが読みやすくなる(かも)
詳しくは公式で
Thank you !!