web 1.0.0 copy "web: ^1.0.0" to clipboard
web: ^1.0.0 copied to clipboard

Platformweb

Lightweight browser API bindings built around JS interop.

example/example.dart

// Copyright (c) 2023, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:web/web.dart';

void main() {
  final div = document.querySelector('div')!;
  div.text = 'Text set at ${DateTime.now()}';
}
161
likes
140
points
6.33M
downloads

Publisher

verified publisherdart.dev

Weekly Downloads

Lightweight browser API bindings built around JS interop.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on web