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()}';
}
150
likes
140
pub points
99%
popularity

Publisher

verified publisherdart.dev

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