Handle Dart SDK change to extension types (#116)

* Handle Dart SDK change to extension types

This is to make sure code generation doesn't break when we move JS
types to extension types. Moving all of the types defined in
web.dart to extension types will be handled in a future change.

Updates analyzer dep to 6.3.0 to get the latest extension type
changes.
3 files changed
tree: f22fe0e19f0432d9c3c3bb0108bf58d222f23a70
  1. .github/
  2. example/
  3. lib/
  4. test/
  5. tool/
  6. .gitignore
  7. analysis_options.yaml
  8. CHANGELOG.md
  9. LICENSE
  10. pubspec.yaml
  11. README.md
README.md

Dart CI pub package package publisher

Lightweight browser API bindings built around JS static interop.

What's this?

This package exposes browser APIs. It's generated from the Web IDL definitions and uses recent Dart language features for zero-overhead bindings.

This package is intended to replace dart:html and similar Dart SDK libraries. It will support access to browser APIs from Dart code compiled to either JavaScript or WebAssembly.

Status

The APIs in this package are still fairly provisional and could change rapidly. We'll continue to use semantic versioning as we evolve the APIs.

Usage

import 'package:web/web.dart';

void main() {
  final div = document.querySelector('div') as HTMLDivElement;
  div.text = 'Text set at ${DateTime.now()}';
}

Web IDL version

Based on @webref/idl 3.39.1.