Dart (3.12)

This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].

Snapshot Dart 3.12 — released 18 May 2026 · lifecycle superseded (superseded by Dart 3.13, shipped with Flutter 3.47.0 on 12 August 2026)

Family Dart — shelf: Web

The language’s centre of gravity is the browser or the HTTP request and response model. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.

Trajectory 1.0 (November 2013 — first stable release) · 3.12 (18 May 2026 — assessed release; shipped with Flutter 3.44.0) · 3.13 (12 August 2026 — assessed release; shipped with Flutter 3.47.0)

Tags

Use — Application, Web front end, Desktop, Mobile

Paradigm — Object-oriented, Imperative, Concurrent

Platform — Browser, Mobile target

Lifecycle — Superseded

Memory — Managed (GC)

Typing — Static, strong

Resources

The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to Dart 3.12; an unmarked link is the current reference for the language.

Landing page

Specification and reference

API documentation

Tutorial

Package registry

1 Assessment

This page assesses Dart in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.

Core coupling 78.3/100 · Ecosystem coupling 84.8/100 · Engineering readiness 70.8/100

1.1 Core coupling

1.1.1 Type

  • ✅ Sound null safety: String and String? are distinct types, and Dart 2.12 and later check the difference at compile time
  • ✅ Static typing with inference: var, final, and const infer a type, and that type is checked everywhere the value is used
  • ✅ Sealed classes give exhaustive matching: A sealed class hierarchy lets the analyser check a switch expression for exhaustiveness
  • ✅ Records give structural data: (int, String) is a value type with no class declaration, and its fields are named or positional
  • ✅ Pattern matching decouples destructuring from accessors: An object, list, or record pattern pulls values apart without getter calls
  • ✅ Extension methods add behaviour outside the type: An extension on String adds methods without subclassing or changing the class
  • ❌ String is documented as UTF-16 code units; length counts units (T15)

1.1.2 Construction

  • ✅ late decouples initialisation from construction: A late final field is initialised on first access, so the constructor need not compute it
  • ✅ Factory constructors decouple construction from allocation: A factory constructor can return a cached instance, a subtype, or a constant instead of a fresh object
  • ✅ const constructors build compile-time constants: A const value is canonicalised, so equal constants share one instance
  • ✅ State lives in the object: The language forces no global mutable state, and an instance is the natural unit of state
  • ✅ Named and optional parameters state the construction contract: Point({required int x, int y = 0}) names each argument at the call site
  • ⚠️ A library-level var is global mutable state: Mutable top-level variables are permitted, so global coupling needs discipline rather than the compiler
  • ❌ One value, many names: every Dart object is reached by reference; a field, a parameter, and a closure share one instance, and const pins the binding, not the object (C6)

1.1.3 Memory

  • ❌ The VM collects garbage: Allocation and reclamation are automatic, and the program cannot choose when a pause happens (M2)
  • ❌ No RAII: The language has no scope-exit destructor, so an opened File or socket must be closed by hand or in a try/finally (M3)
  • ❌ No ownership or borrow model: Aliasing is unrestricted, so two references can hold the same mutable object and the VM alone tracks its lifetime (M4)
  • ✅ No manual deallocation: Ordinary Dart never frees memory, so a double free or a use after free cannot occur in managed code
  • ✅ Each isolate owns a separate heap: An isolate collects its own garbage, so a pause is confined to one isolate
  • ⚠️ Finalizer and weak references are best effort: Finalisation runs when the collector decides, not at a moment the program chooses

1.1.4 Error

  • ❌ Exceptions are unchecked: throw accepts any object and no signature declares what a function can throw, so a caller cannot read the failure set from the type (Er2)
  • ⚠️ try/on/catch/finally gives a structured path: The recovery path is separate from the normal path, but the caught type is matched at run time
  • ⚠️ Error and Exception are a convention: Error marks a programming fault and Exception a recoverable condition, and nothing enforces the split
  • ✅ finally separates cleanup from recovery: The block runs whether the body succeeds, throws, or returns
  • ✅ Future failures stay inside the chain: async/await routes a thrown object to the awaiting caller, and catchError handles it beside the value
  • ✅ assert states a precondition in development mode: An assertion runs in development and JIT mode, so a violated invariant fails early

1.1.5 Concurrency

  • ✅ Isolates share no memory: Each isolate has its own heap and communicates only by message, so a data race between isolates cannot occur
  • ✅ Future and async/await suspend without blocking: An await yields the event loop instead of holding a thread
  • ✅ Stream composes asynchronous sequences: await for and stream transformers chain events without callback nesting
  • ❌ No race detection inside an isolate: The event loop runs each callback to completion, and the language provides no lock or race checker for shared mutable state (K3)
  • ✅ Isolate.run and ports marshal by copy: A message is copied or transferred, so a value cannot be shared accidentally
  • ✅ One event loop per isolate removes most synchronisation: Application code on a single isolate needs no lock

1.1.6 Platform

  • ✅ Ahead-of-time compilation to native code: dart compile exe and the Flutter release build produce native ARM and x64 binaries with no interpreter
  • ✅ Web targets are first class: dart compile js and dart2wasm emit JavaScript and WebAssembly for browsers
  • ✅ The development VM supports hot reload: The kernel VM and the JIT path give an edit-and-reload cycle without a rebuild
  • ✅ No vendor runtime lock-in: One source runs on the Dart VM, as native code, and in a browser
  • ⚠️ Flutter is the dominant consumer: Server use through Shelf and Dart Frog is real but far smaller

1.1.7 Trade-offs (not coupling)

  • The ecosystem outside Flutter is small: Most packages target Flutter, so a non-UI project has fewer libraries; this is a community outcome, not a language mechanism
  • Null-safety migration of old packages is unfinished: An unmigrated package carries an unsound boundary, and opting out with a // @dart=2.x comment is a legacy choice
  • JIT in development and AOT in production is a tooling split: Hot reload needs the JIT, and a release build needs the AOT compiler
  • Familiar syntax is a familiarity choice: The C-style grammar is close to Java and TypeScript, which lowers the barrier but is not a coupling property
  • dart:ffi reaches native code: FFI is an explicit escape hatch, so the memory-safety guarantees of managed code do not extend across it
  • Dart is a general-purpose language with a UI-heavy reputation: The reputation follows Flutter, not a scope limit in the language

1.2 Ecosystem coupling

1.2.1 Performance

  • ✅ Production code is compiled ahead of time: The Flutter release toolchain and dart compile emit native machine code, so the hot path holds no interpreter
  • ✅ Startup is fast: An AOT binary starts without a warm-up phase, which matters for a mobile cold start
  • ✅ The JIT optimises development runs: The development VM profiles and recompiles hot functions, so hot reload keeps speed
  • ❌ The collector pauses the mutator: The generational garbage collector stops execution during a collection, which appears as a frame-time spike (R2)
  • ⚠️ Throughput is good but not hand-tuned C: AOT output is close to a native compiler’s, but a numeric kernel has no SIMD or arena control in the language

1.2.2 Ecosystem

  • ✅ dart pub and pub.dev are mature: Version constraints, a lockfile, and a central registry are part of the SDK
  • ✅ The SDK ships the toolchain: dart analyze, dart format, dart test, and dart fix need no extra install
  • ✅ Google backs the language: Funding and staff come from one large vendor, which keeps the toolchain coherent
  • ❌ The package ecosystem is small outside Flutter: The great majority of packages are Flutter plugins, so a server or CLI project finds fewer libraries (Ec3)
  • ⚠️ Null-safety migration is still in progress for old packages: An unmigrated dependency weakens the soundness guarantee at the boundary
  • ⚠️ A single vendor holds the roadmap: The language specification and the Flutter release train come from one company
  • ✅ Native code reaches Dart through the FFI’s C interface, whose ABI the platform publishes [5] (Ec8)

1.2.3 Evolution

  • ✅ Dart 3 unified the language at 100% null safety: One soundness model now applies to all migrated code
  • ✅ Language versions are declared per library: A // @dart=3.0 comment pins a library to a language version, so a migration can be staged
  • ✅ dart fix --apply automates migrations: Mechanical rewrites for deprecations ship with the SDK
  • ✅ The language changes on a predictable cadence: Releases follow the Flutter stable train, so a team can plan an upgrade
  • ⚠️ Older packages may lag the current release: A dependency that targets an older language version keeps its old semantics
  • ❌ Build variants multiply: const fromEnvironment with –define, plus URI-conditional imports, select which code the compiler keeps (V7)

1.2.4 Domain

  • ✅ Excellent fit for cross-platform UI: Flutter renders one widget tree on iOS, Android, web, and desktop from one source
  • ✅ Server-side use is supported: Shelf and Dart Frog provide HTTP servers and routing on the same runtime
  • ✅ Browser output works through JavaScript and WebAssembly: dart compile js and dart2wasm cover the web target
  • ✅ Command-line tools are a supported target: dart compile exe produces a standalone binary
  • ⚠️ Non-Flutter use is uncommon: Examples, packages, and hiring lean toward UI development

1.2.5 Learning

  • ✅ The syntax is familiar: The C-style grammar and the type annotations resemble Java, C#, and TypeScript
  • ✅ Inference keeps annotations light: var, final, and collection literals let a beginner write working code early
  • ✅ The official documentation is thorough: dart.dev carries a language tour, codelabs, and the effective-Dart guides
  • ✅ Null safety gives a clear first rule: The compiler’s null-safety errors teach the distinction between T and T? quickly
  • ⚠️ Dart 3 features are recent: Records, patterns, and sealed classes postdate many tutorials, so older material omits them

1.2.6 Syntax

  • ✅ Familiar C-style syntax: Braces, semicolons, and the . member operator match the mainstream
  • ✅ Expression-oriented switch: A Dart 3 switch expression returns a value and reads as a mapping from case to result
  • ✅ String interpolation is built in: "value: $x" embeds an expression without a concatenation call
  • ✅ Named arguments make call sites self-documenting: theme: dark, dense: true states the intent at the call
  • ⚠️ Asynchronous code colours functions: An async function returns Future<T>, so a caller must be asynchronous to await it
  • ⚠️ Null-aware operators add punctuation: ?., !, and ?? are concise but stack up in dense expressions

1.2.7 Testing

  • ✅ package:test is the standard runner: dart test discovers files under test/ and reports structured failures
  • ✅ flutter_test covers widget tests: WidgetTester pumps frames and finds widgets by key or text
  • ✅ The analyser catches errors before the test run: dart analyze reports type and null-safety faults without executing code
  • ✅ Asynchronous and golden tests are supported: expectLater and matchers handle Future and Stream results
  • ⚠️ There is no single mocking standard: mockito with code generation and mocktail without it are both common

1.2.8 Security

  • ✅ Sound null safety removes null dereference: A String? cannot be used as a String without a check or an explicit !
  • ✅ Static typing rejects type confusion at compile time: The analyser rejects an assignment the type system forbids
  • ✅ Bounds checking is always on: An index outside a list’s range throws RangeError rather than reading adjacent memory
  • ✅ No eval and no dynamic code execution: The language has no construct that turns a string into code
  • ⚠️ Web output inherits browser risks: A compiled script still runs inside the browser’s security model
  • ❌ VM integers are 64-bit two’s-complement wraparound; the web backend carries the JavaScript double rule (Q4)

1.2.9 Delivery targets

What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.

Target Ships as Crosses a producer boundary Cross-release promise
pub package source source no A pub package ships source the app build compiles
FFI native library compiled yes yes — Native code reaches Dart through the FFI’s C interface, whose ABI the platform publishes [5]

1.3 Engineering readiness

1.3.1 Reproducibility

  • ❌ Pub resolves dependency versions from the registry at get time; the lockfile is discipline. (Y1)

1.3.2 Supply chain

  • ❌ Pub packages carry no signed provenance. (Y3)
  • ❌ The pub name space is flat. (Y4)

1.3.3 Observability

  • ❌ No tracing standard exists in the language; DevTools observes the running app. (Y5)

1.3.4 Feedback

  • ✅ Dart DevTools ships with the SDK. (Y13)
  • ✅ dart run starts with no build. (Y7)
  • ⚠️ Editor analysis rides the analysis server.

1.3.5 Interop

  • ✅ dart:ffi is the in-process foreign interface to C. (Y9)
  • ✅ The compilers target the common desktop, mobile, and web platforms. (Y10)

1.3.6 Governance

  • ❌ The language specification is published, and the semantics of the unspecified corners rest on the shipped SDK; the SDK’s tests are a development suite, not a conformance suite (Y17)

1.4 Profile

Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.

1.4.1 Energy and cost

What this axis asks: what does a running program cost in energy and time?

  • ⚠️ Runs on a virtual machine, above native code in the energy and time benchmarks [6]; a causal re-analysis attributes most of the gap to execution time [7].

1.4.2 AI and agent readiness

What this axis asks: how well does a coding model and an agent work in this language?

  • ⚠️ Moderate training data: models write it competently, with measurable language-specific weakness [8].

1.4.3 Safety certification

What this axis asks: is there a certified or standards-qualified path to a safety-critical system?

  • ⚠️ No certified or standards-qualified path for safety-critical systems.

1.5 Scoring detail

1.5.1 Core coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Type T1 dynamic no static check language — 0
T2 weak static language — 0
T3 dynamic/duck dispatch language — 0
T4 no sum types language — 0
T5 no generics language — 0
T6 no namespaces language — 0
T7 type erasure/reflection language — 0
T8 operator overloading language — 0
T9 inheritance required for polymorphism language — 0
T10 no null-safety language — 0
T11 no module boundary language — 0
T12 no effect tracking language ✅ −8
T13 async/sync colouring language ✅ −8
T14 unchecked foreign boundary language ✅ −4
T15 chars are encoding units language ✅ −8
Type cost −8.0 (−28)
Construction C1 global mutable state by default language — 0
C2 no immutability by default language — 0
C3 constructors coupled to allocation language — 0
C4 no constructor/validation language — 0
C5 unpinned collection order language — 0
C6 aliasing by default language ✅ −8
C7 undeclared control transfer language — 0
C8 no source-visible init order language — 0
Construction cost −2.3 (−8)
Memory M1 manual deallocation runtime — 0
M2 GC non-deterministic pauses runtime ✅ −8
M3 no RAII language ✅ −4
M4 no ownership model language ✅ −8
M5 uninitialized reads language — 0
M6 unchecked reinterpretation language — 0
Er6 uncatchable runtime fault language — 0
M7 reference cycles leak runtime — 0
Memory cost −5.7 (−20)
Error Er1 no structured path language — 0
Er2 unchecked exceptions only language ✅ −8
Er3 errors ignored/non-exhaustive language — 0
Er4 no composable result type language — 0
Er5 no isolation unit for a fault runtime — 0
Error cost −2.3 (−8)
Concurrency K1 GIL/no parallel runtime — 0
K2 shared mutable state default language — 0
K3 manual sync no race detection runtime ✅ −8
K4 no structured concurrency language ✅ −4
K5 no primitives language — 0
K6 thread-per-task cost runtime — 0
Concurrency cost −3.4 (−12)
Platform P1 cannot function outside one vendor/domain context — 0
P2 single-vendor but other uses context — 0
P3 legacy/discontinued platform context — 0
P4 poor domain fit context — 0
Platform cost 0

Core coupling score: 78.3/100 — 76 of the 350 inventory points are present, so the axis cost is 100 × 76 ÷ 350 = 21.7 and the score is 100 − 21.7. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.2 Ecosystem coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Performance R1 interpreted no AOT/JIT runtime — 0
R2 GC pauses runtime ✅ −8
R3 JIT warmup runtime — 0
Performance cost −3.1 (−8)
Ecosystem Ec1 no package manager context — 0
Ec2 fragmented tooling context — 0
Ec3 small/niche/discontinued context ✅ −8
Ec4 proprietary context — 0
Ec5 platform-locked tooling context — 0
Ec6 monoculture context — 0
Ec7 legacy burden context — 0
Ec8 unpromised binary boundary context — 0
Ec9 unpromised data boundary context — 0
Ecosystem cost −3.1 (−8)
Evolution V1 breaking changes language — 0
V2 frozen context — 0
V3 discontinued context — 0
V4 glacial standards context — 0
V5 silent default drift runtime — 0
V7 build-variant state space context ✅ −8
Evolution cost −3.1 (−8)
Domain D1 domain/vendor lock-in context — 0
D3 framework forces architecture context — 0
Domain cost 0
Learning L1 steep context — 0
L2 large surface/multi-paradigm context — 0
L3 sparse docs context — 0
Learning cost 0
Syntax S1 verbose language — 0
S2 inconsistent language — 0
S3 punctuation-heavy language — 0
Syntax cost 0
Testing G1 weak tooling context — 0
G2 poor debugging context — 0
G3 runtime-only errors context — 0
G4 no published monotonic clock runtime — 0
Testing cost 0
Security Q1 memory-unsafe language — 0
Q2 dynamic/weak typing risk language — 0
Q3 known vulnerability/injection context — 0
Q4 silent integer overflow language ✅ −15
Security cost −5.9 (−15)

Ecosystem coupling score: 84.8/100 — 39 of the 256 inventory points are present, so the axis cost is 100 × 39 ÷ 256 = 15.2 and the score is 100 − 15.2. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.3 Engineering readiness Dimensions

Dimension Mechanism Description Imposed by Present Weight
Reproducibility Y1 build not reproducible context ✅ −15
Y2 dependencies not pinned context — 0
Y14 no toolchain version pin context — 0
Y18 no machine-read project contract context — 0
Reproducibility cost −8.8 (−15)
Supply chain Y3 no signed provenance context ✅ −15
Y4 registry without namespacing context ✅ −4
Y16 no advisory feed context — 0
Supply chain cost −11.1 (−19)
Observability Y5 no stable tracing standard context ✅ −8
Y6 no structured logging context — 0
Y15 no post-mortem diagnostics runtime — 0
Observability cost −4.7 (−8)
Feedback Y7 slow build context — 0
Y8 no fast in-editor analysis context — 0
Y13 no bundled debugger context — 0
Feedback cost 0
Interop Y9 no foreign-function interface language — 0
Y10 no portable target context — 0
Interop cost 0
Governance Y11 single-vendor governance context — 0
Y12 closed specification context — 0
Y17 no conformance mechanism context ✅ −8
Y19 no published parser context — 0
Governance cost −4.7 (−8)

Engineering readiness score: 70.8/100 — 50 of the 171 inventory points are present, so the axis cost is 100 × 50 ÷ 171 = 29.2 and the score is 100 − 29.2. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

Verdict: Dart’s design yields moderate language-imposed coupling. Sound null safety, inference, records, patterns, and sealed classes decouple the type from absence and from shape, and isolates remove shared-memory races entirely. Main strengths: AOT native compilation with fast startup, an explicit late and factory construction model, and a compiler that rejects null-safety faults before the program runs. Main weaknesses: the collector and the absence of RAII make resource release non-deterministic, exceptions are unchecked, there is no race detection inside an isolate, and the package ecosystem is small outside Flutter.


The formal development. The definitions, theorems, and proofs behind this page are published in:

All published papers

References

[1]
Y. Loth, “On the nature of coupling: All coupling as shared resource access.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925121.
[2]
Y. Loth, “Coupling as a consequence of cohesion: Decomposition, the coupling floor, and domain-imposed coupling.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925201.
[3]
Y. Loth, “On the nature of cohesion: Cohesion as correctness relative to a partitioning rule.” Zenodo, Jul. 2026. doi: 10.5281/zenodo.20492912.
[4]
Google, “Dart language specification.” Google, 2024. Available: https://dart.dev/guides/language/spec
[5]
Dart team, “C interop using dart:ffi.” Google, 2026. Available: https://dart.dev/interop/c-interop
[6]
R. Pereira et al., “Energy efficiency across programming languages: How do energy, time, and memory relate?” in Proceedings of the 10th ACM SIGPLAN international conference on software language engineering (SLE), 2017, pp. 256–267. doi: 10.1145/3136014.3136031.
[7]
N. van Kempen, H.-J. Kwon, D. T. Nguyen, and E. D. Berger, “It’s not easy being green: On the energy efficiency of programming languages,” in Proceedings of the 40th IEEE/ACM international conference on automated software engineering (ASE), 2025. doi: 10.1109/ASE63991.2025.00131.
[8]
S. Joel, J. J. Wu, and F. H. Fard, “A survey on LLM-based code generation for low-resource and domain-specific programming languages,” ACM Transactions on Software Engineering and Methodology, 2025, doi: 10.1145/3770084.