本文へスキップ
製品デスクトップツールTASTECAD図面の確認TASTEFILESファイル管理TASTEFTPファイル転送TASTESSHリモートワークスペースTASTEZIP圧縮と展開TASTEWINMファイル管理開発ツールTASTECODERust 統合開発環境TASTESTUDIO統合開発・テスト環境TASTEETLデータ統合(ETL)サーバーTASTEREMOTEリモートデスクトップサーバーTASTEGEO空間情報サーバーTASTEMAILメールワークスペース投資TASTESTOCK株式自動売買デスクトップアプリはじめるダウンロードドキュメント購入すべての製品
マーケットプレイス
ニュース
技術ニュース今日の開発ニュース開発ドキュメントプログラミング言語RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWebフロントエンド フレームワークNext.jsReactVue.js · NuxtSvelteKitAngularサーバー フレームワークSpring BootDjangoFastAPIASP.NET CoreNestJS · Expressアプリ・デスクトップ フレームワークTauriFlutterReact NativeElectronアルゴリズムアルゴリズムの基礎主要アルゴリズム発展アルゴリズム実務のアルゴリズム
コミュニティプロジェクト開発ログプロンプトAIツールの問題ショーケースコミュニティガイド
協業技術移転ウェブサイト構築デスクトップアプリ構築リリース・決済パイプライン販売パートナーお問い合わせ
サービスリモートデスクトップインストールパッケージのカスタマイズ
TASTEDEV
製品

デスクトップツール

TASTECAD複雑な図面を、軽やかにひらくTASTEFILES必要なファイルだけを、最速でTASTEFTPファイルが行き交う、いちばん端正な道TASTESSHサーバーとあなたを、より確かにつなぐTASTEZIPより速くまとめ、より安全にひらくTASTEWINM2つの画面で整理する、キーボード中心のファイルマネージャー

開発ツール

TASTECODERust アプリの編集・ビルド・デバッグ・テストまでひとつのウィンドウでTASTESTUDIO編集からリモートテスト、承認した AI 修正までTASTEETL値を見ながら、データを運ぶ

サーバー

TASTEREMOTE自社サーバーで運用するリモートデスクトップTASTEGEOGeoServer 互換の空間情報サーバーを Rust で作り直しますTASTEMAILメールの主導権を、もう一度自分の手に

投資

TASTESTOCKいつ・何を。自分で決めたルールどおりに動く株式自動売買

はじめる

ダウンロード全製品の最新版ドキュメント各製品の使い方購入サブスクリプション・永久ライセンスすべての製品全製品を一覧で
すべての製品
マーケットプレイスニュース
技術

ニュース

今日の開発ニュース言語・フレームワーク・GitHub・AI の公式発表開発ドキュメント言語・フレームワーク・アルゴリズムのガイド

プログラミング言語

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

フレームワーク

Webフロントエンド フレームワークNext.jsReactVue.js · NuxtSvelteKitAngular
サーバー フレームワークSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
アプリ・デスクトップ フレームワークTauriFlutterReact NativeElectron

アルゴリズム

アルゴリズムの基礎計算量解析 · ソート · 探索 · 基本データ構造 · 木構造とヒープ主要アルゴリズムグラフ探索 · 最短経路と最小全域木 · 動的計画法 · 貪欲法 · 分割統治法 · バックトラッキング発展アルゴリズム文字列アルゴリズム · 数学と整数論 · ビット演算 · セグメント木 · Union-Find実務のアルゴリズムコーディング面接対策 · LRUキャッシュ · レート制限 · コンシステントハッシュ法
開発ドキュメントをすべて見る
コミュニティ
プロジェクトビルダーと作品を探す開発ログ決定と試行錯誤プロンプト再利用できる指示AIツールの問題Claude・Codex・Gemini の問題と回避策ショーケース完成した成果コミュニティガイドオープンにつくる方法
協業
技術移転Rust・egui でネイティブアプリを作るウェブサイト構築10言語、アカウント、ドキュメントとダウンロードデスクトップアプリ構築Rust・egui、WebView なしリリース・決済パイプライン署名・MSI・deb・rpm・AppImage・ハッシュ販売パートナー紹介して決済額の30%お問い合わせ構築・提携・投資のご相談
サービス
リモートデスクトップブラウザから自分のパソコンへインストールパッケージのカスタマイズ必要な機能だけ、設定は事前に
購入
JA
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
ログイン
ログイン
TASTEDEV

小さなツールから、より良い開発へ。

support@tastedev.netTASTEDEVを支援
製品製品ラインナップ購入ドキュメントダウンロードマーケットプレイスサポート
コミュニティプロジェクト開発ログプロンプトAIツールの問題ショーケース
ポリシー会社概要プライバシーポリシー利用規約サブスクリプション規約返金ポリシーコミュニティガイドライン
アカウントログイン新規登録
訪問者
今日
昨日
累計閲覧
商号
GXSOFT
代表者
CHOI YOUNG GU
事業者登録番号
853-44-00368
所在地
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
電話
+82-10-4404-1523
メール
whitecalvin@tastedev.net
個人情報保護責任者
CHOI YOUNG GU

© 2026 TASTEDEV製品情報は検証済みの開発ソースに基づいています。リリース・改善中

Dart ドキュメント
Dart
Getting Started with DartSyntax BasicsTypes and DataLibraries and PackagesErrors and TestingKey Concepts
ディスカッション

Dart ガイド · 1/6

Getting Started with Dart

この章は現在、英語でのみ提供しています。

Dart is a client-optimized, general-purpose language created by Google. You can use it to build command-line tools, servers and web apps, and it is best known as the language behind Flutter. In this chapter you will install the Dart SDK, create and run a first project, try code in the browser with DartPad, and set up your editor.

Installing the Dart SDK

The Dart SDK bundles the compiler, runtime, package manager (pub), analyzer, formatter and test runner behind a single dart command. There are two common ways to get it.

  • Dart only: follow the official instructions at dart.dev/get-dart to install the standalone SDK.
  • With Flutter: the Flutter SDK ships with a Dart SDK inside it, so installing Flutter is enough.

A package manager is usually the simplest route. On macOS use Homebrew, on Windows use Chocolatey, and on Debian or Ubuntu use the apt repository provided by Google. You can also download an archive, extract it and add its bin directory to your PATH.

# macOS (Homebrew)
brew tap dart-lang/dart
brew install dart

# Windows (Chocolatey, from an elevated terminal)
choco install dart-sdk

# Verify the installation
dart --version

If dart --version prints an SDK version, you are ready. If you installed Flutter, the dart command works as long as flutter/bin is on your PATH. When both are installed, run which dart (or where dart on Windows) to see which one comes first and avoid version confusion.

Creating a first project

dart create generates a new project from a template. The default template is a command-line app (console); with -t you can pick others such as package (a reusable library), server-shelf (a small HTTP server), cli (a command-line tool with argument parsing) or web.

dart create hello_dart
cd hello_dart
dart run

The generated project looks like this.

PathPurpose
bin/hello_dart.dartEntry point with the main function
lib/hello_dart.dartThe project's library code
test/hello_dart_test.dartTests written with package:test
pubspec.yamlPackage name, SDK constraint, dependencies
この章について質問がありますか?
次の章Syntax Basics
analysis_options.yamlStatic analysis (lint) settings

Open bin/hello_dart.dart and write your first program. A Dart program starts at the top-level main function, which can receive command-line arguments as a List<String>.

void main(List<String> arguments) {
  final name = arguments.isEmpty ? 'Dart' : arguments.first;
  print('Hello, $name!');
}

dart run finds the entry point under bin and runs it, and you can pass arguments after it. To run a single file, give its path directly.

dart run                      # runs bin/<package_name>.dart
dart run bin/hello_dart.dart developer
dart compile exe bin/hello_dart.dart -o hello
./hello

dart run uses the JIT (just-in-time) compiler for a fast development loop, while dart compile exe produces a self-contained native executable with the AOT (ahead-of-time) compiler. The executable runs on machines of the same operating system and architecture without a Dart SDK. You can also target JavaScript with dart compile js and WebAssembly with dart compile wasm.

Everyday dart commands

CommandWhat it does
dart analyzeReports type errors and lint warnings
dart format .Formats code in the official style
dart fix --applyApplies automated fixes suggested by the analyzer
dart testRuns the tests in the test directory
dart pub getFetches the dependencies in pubspec.yaml
dart docGenerates API documentation

Make dart format and dart analyze a habit before every commit. The Dart community accepts the official formatter's output as-is, so there is very little debate about indentation or line breaks.

Trying code in DartPad

To taste Dart without installing anything, open DartPad. You write code in the browser and run it immediately, with access to the core libraries, a set of popular packages, and even Flutter UI rendering. It is handy for checking short examples, experimenting with syntax, or sharing a reproduction with someone else. Code that relies on dart:io, such as file system or process access, cannot run in the browser.

Editor setup

The Dart team maintains official plugins for VS Code and the IntelliJ family (IntelliJ IDEA and Android Studio).

  • VS Code: install the Dart extension from the marketplace. If you use Flutter, installing the Flutter extension pulls in the Dart extension as well.
  • IntelliJ and Android Studio: install the Dart plugin (or the Flutter plugin) from the plugin settings and point it at your SDK.

Both editors use the Dart analysis server, so they offer the same code completion, error highlighting, quick fixes, renaming and format-on-save. In VS Code, enable "editor.formatOnSave": true to get dart format output every time you save. Static analysis rules are tuned in the project's analysis_options.yaml.

include: package:lints/recommended.yaml

linter:
  rules:
    prefer_single_quotes: true
    avoid_print: false

Projects created by dart create already include the recommended rules from package:lints. Enable or disable rules to match your team's conventions.

Summary

You can get the Dart SDK on its own or as part of Flutter, and a single dart command handles project creation (dart create), running (dart run), compiling (dart compile), analysis, formatting and tests. Before installing, DartPad lets you experiment right away; for real work, pair the SDK with the Dart plugin for VS Code or IntelliJ. The next chapter covers the basic syntax: variables, functions and control flow.

コメント 0件

人気のコメント順新しい順

ログイン · ログインするとコメントできます。