Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Lightweight browser API bindings built around JS static interop.

License

NotificationsYou must be signed in to change notification settings

dart-lang/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Dart CIpub packagepackage publisher

Lightweight browser API bindings built aroundJS interop.

What's this?

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

This package is intended to replacedart:html andsimilar Dart SDK libraries. It will support access to browser APIs from Dartcode compiled to either JavaScript or WebAssembly.

Usage

import'package:web/web.dart';voidmain() {final div= document.querySelector('div')!;  div.text='Text set at ${DateTime.now()}';}

Migrating to package:web

package:web is replacingdart:html and other web libraries as Dart'slong-term web interop solution. To learn how to migrate fromdart:htmlAPIs topackage:web, see ourmigration guide.

Generation

This package is generated byweb_generator. See theREADME for moredetails on the conventions used to generate this package and how to run thedifferent tools to generate bindings and update various package dependencies.


[8]ページ先頭

©2009-2025 Movatter.jp