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
Dart3を試す
Search
ken
March 09, 2023
Programming
560
0
Share
Dart3を試す
Flutter Gathering@ DeNA TechCon 2023 のLTで発表した資料です
ken
March 09, 2023
More Decks by ken
See All by ken
FlutterをHTML elementに埋め込む
masumitsu
0
1.4k
Other Decks in Programming
See All in Programming
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
3k
AI-DLC Deep Dive
yuukiyo
9
4.4k
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
200
GoogleCloudとterraform完全に理解した
terisuke
1
100
瑠璃の宝石に学ぶ技術の声の聴き方 / 【劇場版】アニメから得た学びを発表会2026 #エンジニアニメ
mazrean
0
260
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
150
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
3
330
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
450
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
Server-Side Kotlin LT大会 vol.18 [Kotlin-lspの最新情報と Neovimのlsp設定例]
yasunori0418
1
160
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
160
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
550
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
528
40k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
150
Test your architecture with Archunit
thirion
1
2.2k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
380
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
740
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
120
Exploring anti-patterns in Rails
aemeredith
3
320
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Transcript
© DeNA Co., Ltd. 1 Dart 3を試す 益満 健 技術統括部プロダクト開発部
株式会社ディー・エヌ・エー
© DeNA Co., Ltd. 2 • 益満 健 (ますみつ けん)
• 最近は SadServers で遊んだりしています。 ◦ https://zenn.dev/kenma/articles/373d382bf4f1db • https://twitter.com/kenma • https://github.com/kenmasumitsu 自己紹介
© DeNA Co., Ltd. 3 スケジュール • 2023 1月 :
Alpha • 2023 3月 4月: Beta • 2023 半ば: Stable
© DeNA Co., Ltd. 4 特徴 • 完全な null safety
◦ 非 null safety なコードは実行不可 ◦ Dart 2.x では、pubspec.yml で null safety機能の有効/無効を設定 ▪ sdk 2.12以降を指定していたら null safety • 新機能 ◦ Records, Pattern, Access Controls, etc
© DeNA Co., Ltd. 5 特徴 #2 • platform libraryの連携がより簡単に
◦ C/ObjC/Swift/Java/Kotlinをより簡単に呼べるようになる。 ◦ よくわかっていません。 • ポータビリティ ◦ Wasmサポート, RISC-Vサポート, Windows ARM64 サポート • Breaking Changes (破壊的変更) ◦ https://github.com/dart-lang/sdk/issues/34233 ◦ https://github.com/dart-lang/sdk/issues/49529 ◦ https://github.com/dart-lang/language/issues/2357 ◦ 致命的なのはなさそう
© DeNA Co., Ltd. 6 Dart 3を試す - DartPad •
手軽に試せる • 画面下部で、master channel を選ぶ • 現状 Records と Patterns が試せる ◦ beta channelだと試せない
© DeNA Co., Ltd. 7 Dart 3を試す - ローカル •
master か dev channelをインストール ❯ flutter channel master ❯ flutter upgrade • analysis_options.yaml の analyzer.enable-experimentに使いたい機能を指定する analyzer: enable-experiment: - records - patterns • CLIから実行する場合、--enable-experiment=records,patterns 機能の利用を指定 ❯ dart --enable-experiment=records,patterns bin/x_11_pattern.dart name: Lily, age: 13 • vscodeから 実行する場合は、.vscode/launch.json のvmAdditionalArgsに指定 "configurations": [ { "name": "x_01_base.dart", "request": "launch", "type": "dart", "program": "bin/x_01_base.dart", "vmAdditionalArgs": [ "--enable-experiment=patterns,records" ]
© DeNA Co., Ltd. 8 Records, Patter を試す https://github.com/kenmasumitsu/dart3-sample/tree/main/bin のプログラムを試しま
す。
© DeNA Co., Ltd. 9