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
550
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.3k
Other Decks in Programming
See All in Programming
🔨 小さなビルドシステムを作る
momeemt
4
680
ファインディ株式会社におけるMCP活用とサービス開発
starfish719
0
1.8k
意外と簡単!?フロントエンドでパスキー認証を実現する WebAuthn
teamlab
PRO
2
770
250830 IaCの選定~AWS SAMのLambdaをECSに乗り換えたときの備忘録~
east_takumi
0
390
はじめてのMaterial3 Expressive
ym223
2
840
概念モデル→論理モデルで気をつけていること
sunnyone
2
280
rage against annotate_predecessor
junk0612
0
170
ぬるぬる動かせ! Riveでアニメーション実装🐾
kno3a87
1
220
CloudflareのChat Agent Starter Kitで簡単!AIチャットボット構築
syumai
2
500
実用的なGOCACHEPROG実装をするために / golang.tokyo #40
mazrean
1
280
Laravel Boost 超入門
fire_arlo
3
220
Performance for Conversion! 分散トレーシングでボトルネックを 特定せよ
inetand
0
890
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
How STYLIGHT went responsive
nonsquared
100
5.8k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.6k
Raft: Consensus for Rubyists
vanstee
140
7.1k
Navigating Team Friction
lara
189
15k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.1k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
How to Think Like a Performance Engineer
csswizardry
26
1.9k
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