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
Pull-Requestの内容を1クリックで動作確認可能にするワークフロー
natmark
2
520
実践Claude Code:20の失敗から学ぶAIペアプログラミング
takedatakashi
15
5.2k
技術的負債の正体を知って向き合う
irof
0
180
kiroとCodexで最高のSpec駆動開発を!!数時間で web3ネイティブなミニゲームを作ってみたよ!
mashharuki
0
670
詳しくない分野でのVibe Codingで困ったことと学び/vibe-coding-in-unfamiliar-area
shibayu36
3
5.1k
『毎日の移動』を支えるGoバックエンド内製開発
yutautsugi
2
250
デミカツ切り抜きで面倒くさいことはPythonにやらせよう
aokswork3
0
250
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
200
Foundation Modelsを実装日本語学習アプリを作ってみた!
hypebeans
0
120
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
220
その面倒な作業、「Dart」にやらせませんか? Flutter開発者のための業務効率化
yordgenome03
1
130
Go言語の特性を活かした公式MCP SDKの設計
hond0413
1
240
Featured
See All Featured
Building Applications with DynamoDB
mza
96
6.7k
Faster Mobile Websites
deanohume
310
31k
Agile that works and the tools we love
rasmusluckow
331
21k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
35
6.1k
Build your cross-platform service in a week with App Engine
jlugia
232
18k
For a Future-Friendly Web
brad_frost
180
10k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
The Pragmatic Product Professional
lauravandoore
36
6.9k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
980
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
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