The Dart code in this package is generated from Web IDL definitions and MDN API documentation.
To regenerate the package from the current IDL versions, run:
dart tool/update_bindings.dart
package:web's dartdoc comments come from the MDN Web Docs project. In order to update to the latest version of the documentation, run:
dart tool/scrape_mdn.dart
That will collect the MDN documentation into third_party/mdn/mdn.json; changes to that file should be committed to git. You'll need to run tool/update_bindings.dart to produce Dart code using the updated documentation.
To re-generate the package from newer IDL versions, you can either run:
dart tool/update_bindings.dart --update
or, edit manually edit tool/generator/package.json to use specific IDL versions, and re-run tool/update_bindings.dart.
Based on:
| Item | Version |
|---|---|
@webref/css | 6.11.0 |
@webref/elements | 2.2.2 |
@webref/idl | 3.43.1 |
For instructions on re-generating the DOM bindings, see the generator docs.