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
0
540
Dart3を試す
Flutter Gathering@ DeNA TechCon 2023 のLTで発表した資料です
ken
March 09, 2023
Tweet
Share
More Decks by ken
See All by ken
FlutterをHTML elementに埋め込む
masumitsu
0
1.2k
Other Decks in Programming
See All in Programming
GitHub Copilot for Azureを使い倒したい
ymd65536
1
330
開発者フレンドリーで顧客も満足?Platformの秘密
algoartis
0
200
エンジニア向けCursor勉強会 @ SmartHR
yukisnow1823
3
12k
Instrumentsを使用した アプリのパフォーマンス向上方法
hinakko
0
240
The Missing Link in Angular’s Signal Story: Resource API and httpResource
manfredsteyer
PRO
0
140
Serving TUIs over SSH with Go
caarlos0
0
620
Golangci-lint v2爆誕: 君たちはどうすべきか
logica0419
1
240
Flutterでllama.cppをつかってローカルLLMを試してみた
sakuraidayo
0
130
eBPF超入門「o11yに使える」とは (20250424_eBPF_o11y)
thousanda
1
110
The Nature of Complexity in John Ousterhout’s Philosophy of Software Design
philipschwarz
PRO
0
160
AWS Summit Hong Kong 2025: Reinventing Programming - How AI Transforms Our Enterprise Coding Approach
dwchiang
0
130
RuboCop: Modularity and AST Insights
koic
2
2.6k
Featured
See All Featured
Designing for Performance
lara
608
69k
The Cost Of JavaScript in 2023
addyosmani
49
7.8k
It's Worth the Effort
3n
184
28k
GitHub's CSS Performance
jonrohan
1031
460k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Typedesign – Prime Four
hannesfritz
41
2.6k
Building Applications with DynamoDB
mza
94
6.4k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
137
33k
How to train your dragon (web standard)
notwaldorf
91
6k
[RailsConf 2023] Rails as a piece of cake
palkan
54
5.5k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.6k
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