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
Dart3を試す
Search
ken
March 09, 2023
Programming
580
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
2.9k
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
450
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
1.9k
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.4k
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
350
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
190
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
120
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
34
15k
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
140
APNsからLive Activityを開始する話
yumnumm
0
150
SREの越境 / SRE Collaboration
y0hgi
2
300
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
550
Featured
See All Featured
Designing for Performance
lara
611
70k
The Curious Case for Waylosing
cassininazir
1
550
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
600
A Tale of Four Properties
chriscoyier
163
24k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7k
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
Agile that works and the tools we love
rasmusluckow
331
22k
Side Projects
sachag
456
43k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
480
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
A designer walks into a library…
pauljervisheath
211
25k
Ruling the World: When Life Gets Gamed
codingconduct
0
390
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