Elevating JavaScript interoperability with Dart
summary
New Dart 3.3 and 3.4 replace the old js interop with a static, sound system using Dart 3.3/3.4 features: the new JS types (GSany, GSstring, GSarray), package:web for browser APIs, and extension types to define zero-cost JS object interfaces. Examples show migrating existing code, converting between GS arrays and Dart lists, embedding a JS video player via a custom HTML element, and compiling to WASM; the demo video player mostly works but has a scaling issue on WASM.
AI-written summary · about
chapters (7)
- 0:00Dart JS interoperability intro
- 6:11JS interop evolution in Dart
- 15:48Dart 3.3 JS interop libraries
- 23:48JS types and conversions
- 31:01JS objects with extension types
- 35:12JS video player example
- 36:36Summary








