Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Dartの引数を知る
Search
ponday
May 17, 2018
Programming
770
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Dartの引数を知る
ponday
May 17, 2018
More Decks by ponday
See All by ponday
関数型でGoFのデザインパターンやってみる
honda
1
1.7k
TypeScriptの型表現
honda
10
3.2k
Web Componentsの今
honda
1
480
これまでのReact、これからのReact
honda
0
350
Gatsbyお試し
honda
0
150
styled-components or emotion?
honda
0
730
Web ComponentsとAngular
honda
0
170
Atomic Design周りについての私見
honda
1
820
え、まだWeb Componentsを未来の技術だと思ってるの?
honda
2
890
Other Decks in Programming
See All in Programming
golang-bob.pdf
iwatsukayura
0
150
AmebaブログはKMPから卒業します
kmars0605
0
310
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
110
Event is what happens
moro
2
2.1k
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
12
11k
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
310
Kotlinの15年とServer-Side Kotlin
n_takehata
1
170
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
130
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
130
続・コーディングルールの鮮度を保ちたい / keep-fresh-go-internal-conventions-again
handlename
0
150
Web Framework Benchmark Battle 2026, Any%
a_matsuda
3
3.1k
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
210
Featured
See All Featured
Prompt Engineering for Job Search
mfonobong
0
560
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
540
Design in an AI World
tapps
1
370
Done Done
chrislema
187
17k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
Optimising Largest Contentful Paint
csswizardry
37
4k
Designing for Performance
lara
612
70k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Side Projects
sachag
456
43k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
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 !!